From: david at zegrange dot com Operating system: Mandriva 2008.1 PHP version: 5.2.5 PHP Bug Type: InterBase related Bug description: read blob; ibase_blob_echo: BLOB not found
Description: ------------ Hello. We were using PHP 5.1.6 (mandriva 2007) with not problem, then we ugraded to PHP 5.2.5 (mandriva 2008 or 2008.1) on new server and suddenly our BLOB fiels (is a small image) are not being returned. I have verified that they still store properly in the Firebird 2.0 database. No problem with the other functions. If i downgrade back to PHP 5.1.6 (mandriva 2007) on new sever, the problem is fixed. Other Interbase/Firebird functions are working well. Thank's for your feeback. Reproduce code: --------------- The table in dbtest.fdb: CREATE TABLE DF_ETAT ( ETAT_NO SMALLINT NOT NULL, ICONE BLOB SUB_TYPE 0 SEGMENT SIZE 80, ); The php file : test.php <? header('Content-type: image/png'); $dbi = ibase_connect('db_server:/data/dbtest.fdb','SYSDBA','masterkey','NONE'); $sql = "SELECT ICONE FROM DF_ETAT WHERE ETAT_NO=20"; $sth = ibase_query($dbi,$sql); $row = ibase_fetch_object($sth); $blob = ibase_blob_echo($row->ICONE); $ibase_close($dbi); ?> Expected result: ---------------- I expected to see my BLOB fields on the web page test.php Actual result: -------------- I didn't see my BLOB fields. Error log message for httpd return : [error] [client 192.168.1.57] PHP Warning: ibase_blob_echo() [<a href='function.ibase-blob-echo'>function.fbird-blob-echo</a>]: BLOB not found in /var/www/html/test.php on line 6 -- Edit bug report at http://bugs.php.net/?id=44693&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44693&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44693&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44693&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44693&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44693&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44693&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44693&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44693&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44693&r=support Expected behavior: http://bugs.php.net/fix.php?id=44693&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44693&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44693&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44693&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44693&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44693&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44693&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44693&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44693&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44693&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44693&r=mysqlcfg