ID: 44693 Updated by: [EMAIL PROTECTED] Reported By: david at zegrange dot com -Status: Open +Status: Feedback Bug Type: InterBase related Operating System: Mandriva 2008.1 PHP Version: 5.2.5 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2008-05-16 07:57:00] ale dot pas at tiscali dot it Might be related with http://bugs.php.net/bug.php?id=42266 this just adds a record to the long list of firebird blob related bugs introduced after 5.2.1 ------------------------------------------------------------------------ [2008-04-11 09:38:24] david at zegrange dot com 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 this bug report at http://bugs.php.net/?id=44693&edit=1