[Pkg-owncloud-commits] [owncloud] 07/32: Send "SET NAMES utf8" to MySQL for PHP below 5.3.6
David Prévot
taffit at moszumanska.debian.org
Sun Dec 15 01:47:31 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 66af605697c40ec457d9726c6afa4b3998e3ea4c
Author: Andreas Fischer <bantu at owncloud.com>
Date: Wed Dec 11 00:13:40 2013 +0100
Send "SET NAMES utf8" to MySQL for PHP below 5.3.6
---
lib/private/db.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/private/db.php b/lib/private/db.php
index 1e5d126..5620652 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -101,6 +101,9 @@ class OC_DB {
);
$connectionParams['adapter'] = '\OC\DB\Adapter';
$connectionParams['wrapperClass'] = 'OC\DB\Connection';
+ // Send "SET NAMES utf8". Only required on PHP 5.3 below 5.3.6.
+ // See http://stackoverflow.com/questions/4361459/php-pdo-charset-set-names#4361485
+ $eventManager->addEventSubscriber(new \Doctrine\DBAL\Event\Listeners\MysqlSessionInit);
break;
case 'pgsql':
$connectionParams = array(
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list