From: corey at eyewantmedia dot com Operating system: Windows 2003 PHP version: 5.0.4 PHP Bug Type: IIS related Bug description: PHP5/IIS Only Opens One Database Connection At A Time
Description: ------------ I am running php 5.0.4 with IIS 6 and IIS 5.1 (as a test). When I submit multiple requests, php only opens one database connection at a time (to a database server on the same network), so multiple requests are being queued and it takes them longer and longer to process. This happens both when php runs as cig and isapi, and even fastcgi and with winenabler. However, if run through cli, this problem does not happen. Any ideas? Reproduce code: --------------- <?php require_once('DB.php'); //pear db class $db = DB::connect($dsn); //do sttuff $db->disconnect(); //request this page several times to see what I mean ?> Expected result: ---------------- When it is requested many times simultaneously , I expect many database connections Actual result: -------------- php waits for the last database connection to close before it even attempts to connect a second time, queueing up processes like mad. -- Edit bug report at http://bugs.php.net/?id=33071&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33071&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33071&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33071&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33071&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33071&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33071&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33071&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33071&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33071&r=support Expected behavior: http://bugs.php.net/fix.php?id=33071&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33071&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33071&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33071&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33071&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33071&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33071&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33071&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33071&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33071&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33071&r=mysqlcfg