From: edward_chan at hotmail dot com Operating system: XP PHP version: 5.2.0 PHP Bug Type: MySQL related Bug description: PHP/MySQL connector and Stored Procedure problem
Description: ------------ New version of libmysql.dll and php_mysql.dll do not support running more than one stored procedure within the same connection. The second stored procedure will cause the lost of connection. The old version 5.1.2 do not have this kind of problem. Reproduce code: --------------- <?php mysql_connect($hostname, $db_login, $db_pass, FALSE, 65536) or die("Could not connect: ".mysql_error()); mysql_select_db($database) or die("Could not select database: ".mysql_error()); $result = mysql_query("CALL SelectUsersCount()") or die("Query failed: ".mysql_error()); if (mysql_result($result, 0, 0)) { $result = mysql_query("CALL SelectUsers()") or die("Query failed: ".mysql_error()); } mysql_close(); ?> Expected result: ---------------- Should not lose the connection when executing the second stored procedure within the same connection Actual result: -------------- Lost connection to MySQL server during query -- Edit bug report at http://bugs.php.net/?id=40085&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40085&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40085&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40085&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40085&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40085&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40085&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40085&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40085&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40085&r=support Expected behavior: http://bugs.php.net/fix.php?id=40085&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40085&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40085&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40085&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40085&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40085&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40085&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40085&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40085&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40085&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40085&r=mysqlcfg