Bug #23346

dbClientCompress crashes with pconnect

Added by Till Kleisli almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-08-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When I activate dbClientCompress, using pconnect, the DB connection crashes because of this call:

@mysql_pconnect($TYPO3_db_host, $TYPO3_db_username, $TYPO3_db_password, false, MYSQL_CLIENT_COMPRESS);

in line 1015 of class.t3lib_db.php

mysql_pconnect [1], unlike mysql_connect [2] doesn't have a parameter for new_link

[1] http://php.net/manual/en/function.mysql-pconnect.php
[2] http://php.net/manual/en/function.mysql-connect.php

(issue imported from #M15343)


Files

0015343.patch (710 Bytes) 0015343.patch Administrator Admin, 2010-08-05 17:44

Related issues

Related to TYPO3 Core - Feature #17957: Improve database performance for external database hostClosedDmitry Dulepov2007-12-29

Actions
Related to TYPO3 Core - Bug #23066: mysql_pconnect() has too many parametersRejectedSteffen Gebert2010-07-01

Actions
#1

Updated by Till Kleisli almost 12 years ago

introduced in Ticket 7059

#2

Updated by Oliver Hader almost 12 years ago

Thanks for reporting. Can you please provide a patch file that fixes that issue after you already identified the problem with different pconnect/connect parameters. Thanks in advance!

#3

Updated by Oliver Hader almost 12 years ago

Committed to SVN:
  • TYPO3_4-3 (rev. 8482)
  • TYPO3_4-4 (rev. 8483)
  • Trunk (rev. 8484)
#4

Updated by Ingo Renner almost 12 years ago

released in
4.3.5
4.4.2

Also available in: Atom PDF