From: peaktop at inbox dot ru Operating system: WinServer 2003 SP1 PHP version: 5.2.2 PHP Bug Type: InterBase related Bug description: ibase_blob_get bug
Description: ------------ I have problem with Firebird API function ibase_blob_get when trying to megre from PHP5.2.1 into PHP5.2.2. What I did do: 1) Download PHP5.2.2 2) Stopping Apache. 3) Rename folder with PHP5.2.1-engine 4) Place PHP5.2.2-engine into folder, where was PHP5.2.1-engine. 5) Copy "php.ini" from PHP5.2.1 engine to PHP5.2.2 6) Start Apache The block of code (listed bellow) is not working. Reproduce code: --------------- $db = ibase_connect('127.0.0.1:DB', 'SYSDBA', 'masterkey'); if($db != 0){ $sql = 'SELECT FIRST 1 * FROM TABL$W_MENU_LEFT M WHERE (M.ID = 10000)'; $qr = ibase_query($db, $sql); if($qr != 0){ $row = ibase_fetch_object($qr); $blob_inf = ibase_blob_info($row->BODY); $blob_handle = ibase_blob_open($row->BODY); $out_str.= ibase_blob_get($blob_handle, $blob_inf[0]); ibase_blob_close($blob_handle); ibase_free_result($qr); } ibase_close($db); } Expected result: ---------------- In PHP5.2.1-engine I had text in browser, which is stored in Firebird database. Actual result: -------------- Invalid Blob-handle -- Edit bug report at http://bugs.php.net/?id=41345&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41345&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41345&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41345&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41345&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41345&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41345&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41345&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41345&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41345&r=support Expected behavior: http://bugs.php.net/fix.php?id=41345&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41345&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41345&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41345&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41345&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41345&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41345&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41345&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41345&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41345&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41345&r=mysqlcfg