From: jeff76 at operamail dot com Operating system: FreeBSD PHP version: 6CVS-2008-02-08 (snap) PHP Bug Type: MySQL related Bug description: mysql_result returns nothing with blob
Description: ------------ It seems using mysql_result to retrieve a blob doesn't work and returns nothing (NULL). Using a different function like mysql_fetch_assoc however does work properly, as does reverting to PHP 5 or retrieving a non-blob column. This is using Unicode semantics. Reproduce code: --------------- (...connect to DB) $res=mysql_query('SELECT blob_column FROM table WHERE condition'); $var=mysql_result($res, 0); print_r($var); echo(gettype($var)); Expected result: ---------------- (random binary garbage) and a proper variable type (unicode or binary ?) Actual result: -------------- gettype returns NULL, and print_r echoes nothing. -- Edit bug report at http://bugs.php.net/?id=44076&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44076&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44076&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44076&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44076&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44076&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44076&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44076&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44076&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44076&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44076&r=support Expected behavior: http://bugs.php.net/fix.php?id=44076&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44076&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44076&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44076&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44076&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44076&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44076&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44076&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44076&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44076&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44076&r=mysqlcfg