Edit report at https://bugs.php.net/bug.php?id=55473&edit=1

 ID:                 55473
 Updated by:         larue...@php.net
 Reported by:        littlesavage at rambler dot ru
 Summary:            mysql_pconnect leaks file descriptors on reconnect
-Status:             Analyzed
+Status:             Closed
 Type:               Bug
 Package:            MySQL related
 PHP Version:        5.3.7
-Assigned To:        
+Assigned To:        andrey
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2011-08-22 10:42:35] and...@php.net

Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&revision=315270
Log: Fix Bug #55473     mysql_pconnect leaks file descriptors on reconnect
The fix is for now in 5_4 and trunk, to be merged into 5_3 after 5.3.8
is packaged (expected today). The test case goes to all branches

------------------------------------------------------------------------
[2011-08-22 09:01:22] larue...@php.net

and the reason for why this cleanup cound not be done in dtor,  is that in 
dtor, 
it also clean the content, option, which should not free at that memont,

and that is not a dtor time in theory.

------------------------------------------------------------------------
[2011-08-22 08:35:23] larue...@php.net

I found this is due to, when doing a reconnect, mysqlnd_connect didn't free the 
stream. I have submitted a patch, but need georg&andrey&ulf to review first..

------------------------------------------------------------------------
[2011-08-22 08:33:34] larue...@php.net

The following patch has been added/updated:

Patch Name: Bug55473.diff
Revision:   1314002014
URL:        
https://bugs.php.net/patch-display.php?bug=55473&patch=Bug55473.diff&revision=1314002014

------------------------------------------------------------------------
[2011-08-22 06:20:46] littlesavage at rambler dot ru

I have found this bug on Debian squeeze (x86_64), php PHP 5.3.6-6~dotdeb.1 with 
Suhosin-Patch, mysql 5.1.58.
Then i repeat it on FreeBSD 9, php 5.3.7 with Suhosin-Patch, mysql 5.5.12.

On FreeBSD i have found that this bug reproducable only when i use mysqlnd 
native driver. Everything work as expected with standart mysql driver.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=55473


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55473&edit=1

Reply via email to