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

 ID:                 55473
 Comment by:         jim at addmired dot com
 Reported by:        littlesavage at rambler dot ru
 Summary:            mysql_pconnect leaks file descriptors on reconnect
 Status:             Closed
 Type:               Bug
 Package:            MySQL related
 PHP Version:        5.3.7
 Assigned To:        andrey
 Block user comment: N
 Private report:     N

 New Comment:

We are still getting hit by this bug. This patch hasn't been applied in 5.3 
releases yet, apparently. It was supposed to go into 5.3.8 but still no joy. =( 
Any hope of this getting into the code now? =(


Previous Comments:
------------------------------------------------------------------------
[2011-08-23 19:19:39] neweracracker at gmail dot com

Maybe its time to apply in 5.3?

http://svn.php.net/viewvc?view=revision&revision=315270

------------------------------------------------------------------------
[2011-08-22 10:57:44] larue...@php.net

Please try using this snapshot:

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

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



------------------------------------------------------------------------
[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..

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


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