Fixed bug #15343: dbClientCompress crashes with pconnect
authorOliver Hader <oliver.hader@typo3.org>
Thu, 5 Aug 2010 15:55:30 +0000 (15:55 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 5 Aug 2010 15:55:30 +0000 (15:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8484 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_db.php

index 943a723..4182589 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-05  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #15343: dbClientCompress crashes with pconnect
+
 2010-08-04  Ingo Renner  <ingo@typo3.org>
 
        * Added feature #15305: Logging cache clearing, credits Stefan Sprenger
index f691898..3a1b1a7 100644 (file)
@@ -1098,7 +1098,7 @@ class t3lib_DB {
                } else {
                        if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['dbClientCompress'] && !$isLocalhost) {
                                        // See comment about 4th parameter in block above
-                               $this->link = @mysql_pconnect($TYPO3_db_host, $TYPO3_db_username, $TYPO3_db_password, false, MYSQL_CLIENT_COMPRESS);
+                               $this->link = @mysql_pconnect($TYPO3_db_host, $TYPO3_db_username, $TYPO3_db_password, MYSQL_CLIENT_COMPRESS);
                        } else {
                                $this->link = @mysql_pconnect($TYPO3_db_host, $TYPO3_db_username, $TYPO3_db_password);
                        }