WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
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:
Reply
•
Quote
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:
Reply
•
Quote
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:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login