PHP 5.3.0 crashes on mysql_close()
Posted by: brianko (---.tx.res.rr.com)
Date: September 04, 2010 08:40PM

Just in case anyone is running into this problem: It seems as if PHP 5.3.0 crashes when mysql_close() is called without a DB argument (and it takes httpd with it). The fix is simple: Make sure to pass the DB object to the mysql_close() argument:

$db = mysql_connect(...)

...

mysql_close($db)

That seemed to solve the problem for me...

Options: ReplyQuote
Re: PHP 5.3.0 crashes on mysql_close()
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: September 04, 2010 09:05PM

yes its a known issue . thanks
only 5.3.0 is affected

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: PHP 5.3.0 crashes on mysql_close()
Posted by: brianko (---.tx.res.rr.com)
Date: September 05, 2010 03:47AM

Indeed, PHP 5.3.1 doesn't break with an empty arg list to mysql_connect(). Thanks, Steven!

Options: ReplyQuote


Sorry, only registered users may post in this forum.