#32928 [NEW]: php dies trying to ->bind_result(...)

From: Date: Tue, 03 May 2005 14:19:31 +0000
Subject: #32928 [NEW]: php dies trying to ->bind_result(...)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78589@lists.php.net to get a copy of this message
From: dan at yes dot lt Operating system: winxp PHP version: 5.0.4 PHP Bug Type: MySQLi related Bug description: php dies trying to ->bind_result(...) Description: ------------ php dies trying to mysqli_stmt->bind_result(...) with listed queries: SELECT 1.23 AS test SELECT NULL AS test php version 5.0.4, mysql version 5.0.4 beta Reproduce code: --------------- $st = $db->prepare("SELECT 1 AS test"); $st->bind_result($x); $st->fetch(); var_dump($x); $st = $db->prepare("SELECT 1.23 AS test"); $st->bind_result($x); $st->fetch(); var_dump($x); $st = $db->prepare("SELECT NULL AS test"); $st->bind_result($x); $st->fetch(); echo $st; var_dump($x); Expected result: ---------------- int(1) float(1.23) NULL Actual result: -------------- int(1) ...FATAL ERROR WITH NO OUTPUT... ...FATAL ERROR WITH NO OUTPUT... -- Edit bug report at http://bugs.php.net/?id=32928&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32928&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32928&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32928&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32928&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32928&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32928&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32928&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32928&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32928&r=support Expected behavior: http://bugs.php.net/fix.php?id=32928&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32928&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32928&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32928&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32928&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32928&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32928&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32928&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32928&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32928&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32928&r=mysqlcfg

« previous php.bugs (#78589) next »