From: [EMAIL PROTECTED] Operating system: Linux PHP version: 5CVS-2005-05-07 (dev) PHP Bug Type: MySQLi related Bug description: Problem with unbuffered prep. statements
Description: ------------ Prepare does not clean the wire before the next prepare. It should be discussed whether it should be done but this bug is created to have a track of this issue. Reproduce code: --------------- <?php $st = $db->prepare("SELECT 1 AS test"); $st->execute(); $st->bind_result($x); $st->fetch(); var_dump($x); $st = $db->prepare("SELECT 1.23 AS test"); var_dump($st); $st->execute(); $st->bind_result($x); $st->fetch(); var_dump($x); ?> Expected result: ---------------- int(1) object(mysqli_stmt)#3 (0) { } string(4) "1.23" Actual result: -------------- int(1) bool(false) PHP Fatal error: Call to a member function execute() on a non-object in /home/andrey/tst/ttt.php on line 11 -- Edit bug report at http://bugs.php.net/?id=32973&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32973&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32973&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32973&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32973&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32973&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32973&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32973&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32973&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32973&r=support Expected behavior: http://bugs.php.net/fix.php?id=32973&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32973&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32973&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32973&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32973&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32973&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32973&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32973&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32973&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32973&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32973&r=mysqlcfg