From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.2.0 PHP Bug Type: InterBase related Bug description: ibase_close() crashes PHP when there is some open blobs
This bug is similar to already resolved bugs 14558 and 15419, but problem is still persists when there is available some code to work with BLOBs. Here is example: CREATE TABLE TEST_TABLE ( ID INTEGER NOT NULL, STR_CONTENT VARCHAR(100), BLOB_CONTENT BLOB SUB_TYPE 1 SEGMENT SIZE 80 ); $db = ibase_connect($database,$user,$password); $result = ibase_query($db,'select * from test_table'); while($row = ibase_fetch_row($result)) { $info = ibase_blob_info($row[2]); $data = ''; $blob = ibase_blob_open($bid); for($i=0;$i<$info[1];$i++) $data .= ibase_blob_get($blob,$info[2]); ibase_blob_close($blob); echo $data; }; ibase_free_result($result); ibase_close(); This code works fine, but if i remove ibase_blob_close() function call (and therefore leave BLOB open) - PHP will crash on calling ibase_close(). -- Edit bug report at http://bugs.php.net/?id=17040&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17040&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17040&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17040&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17040&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17040&r=support Expected behavior: http://bugs.php.net/fix.php?id=17040&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17040&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17040&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17040&r=globals