#41345 [Fbk->Bgs]: ibase_blob_get bug
ID: 41345
Updated by: tony2001@php.net
Reported By: peaktop at inbox dot ru
-Status: Feedback
+Status: Bogus
Bug Type: InterBase related
Operating System: WinServer 2003 SP1
PHP Version: 5.2.2
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2007-05-10 20:04:31] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2007-05-10 07:30:43] peaktop at inbox dot ru
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 this bug report at http://bugs.php.net/?id=41345&edit=1
Thread (3 messages)