From: it at videinfra dot com Operating system: W2K,WinXp, Win 2003 Srv PHP version: 4.3.9 PHP Bug Type: MySQL related Bug description: can't connect to MySQL after a number of requests
Description: ------------ I simultaneously run one, absolutely indentical script on two different servers, one running Linux and another Windows. The script on both machines connects to the remote MySQL server on another Linux machine. The PHP script on Linux machine works fine, while the script on Windows machine gives an error - Can't connect to MySQL server on '10.0.1.4' (10048) - after a number of requests. I believe that this implies a bug in PHP on Windows, because as seen from the test described above, MySQL connection limit COULD NOT BE THE CAUSE, since the script on the Linux machine continues working with the same database without any problem. Also, PHP configuration files on both platforms are identical. Reproduce code: --------------- <? $conn = mysql_connect ( '10.0.1.4', 'root', '') or die("Could not connect: " . mysql_error()); mysql_select_db('lub2', $conn); $res = mysql_query("SELECT title FROM pages_lv0 WHERE id = 1", $conn) or die("Invalid query: " . mysql_error()); mysql_close($conn); echo "ok"; ?> -- Edit bug report at http://bugs.php.net/?id=30719&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30719&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30719&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30719&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30719&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30719&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30719&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30719&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30719&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30719&r=support Expected behavior: http://bugs.php.net/fix.php?id=30719&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30719&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30719&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30719&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30719&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30719&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30719&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30719&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30719&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30719&r=mysqlcfg