Bug #52027 [NEW]: NULL bytes in mysqli prepared statements

From: Date: Wed, 09 Jun 2010 09:22:11 +0000
Subject: Bug #52027 [NEW]: NULL bytes in mysqli prepared statements
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-4464@lists.php.net to get a copy of this message
From: Operating system: Windows 7 PHP version: Irrelevant Package: PHP-GTK related Bug Type: Bug Bug description:NULL bytes in mysqli prepared statements Description: ------------ MySQLi prepared statements always return NULL bytes when running in PHP-GTK. This bug does not exist in WAMP environment. Normal queries work fine in PHP-GTK. My PHP-GTK/MySQL setup is fine. Test script: --------------- $test = null; if($stmt = $mysqli->prepare("SELECT 'here 3' FROM saved_data LIMIT 1")) { echo 'here 1'; $stmt->bind_result($test); $stmt->execute(); while($stmt->fetch()) { echo 'here 2'; var_dump($test); } } Expected result: ---------------- here 1 here 2 string(6) "here 3" Actual result: -------------- here 1 here 2 string(7) " " -- Edit bug report at http://bugs.php.net/bug.php?id=52027&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52027&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52027&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52027&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52027&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52027&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52027&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52027&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52027&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52027&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52027&r=support Expected behavior: http://bugs.php.net/fix.php?id=52027&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52027&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52027&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52027&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52027&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52027&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52027&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52027&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52027&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52027&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52027&r=mysqlcfg

« previous php.gtk.dev (#4464) next »