I have many php script with several iterations on rows from a mysql database, every iteration opens another extra connection to get extra data not included in the original select. Suddenly, somewhere in the middle of theese scripts the Connection from Apache resets while is executing the script (and reading from the mysql database).
In Apache's error.log the following error is shown: Parent: child process exited with status 255
The system works perfectly up to 5.2.9 but doesn't work with 5.3.0 nor 5.3.1-dev, this is why I thing is a php5.3-related problem.
I'm sorry but i could not reproduce this problem in a short script, I even open a bug report en php.net site of this?
Windows 7 RC Apache 2.2.11
Did anyone of you guys experienced the same problem after upgrading to php 5.3?
UPDATE:
I could isolate the error down to:
<?
$dbh=mysql_connect ("localhost", "root", "mysqluser") or die
('I cannot connect to the database because');
mysql_select_db ("bbbac_globaldata") or die( "Unable to select
database");
mysql_close();
?>
Comment out mysql_close() and no error will happen.
This is the PHP bug I filled: http://bugs.php.net/bug.php?id=48943
UPDATE
This is a KNOWN php 5.3 bug with mysql_close() when no argument is given:
http://bugs.php.net/bug.php?id=48754
THANKS FOR ALL THE HELP!!!