From: Ard Biesheuvel Date: Sun, 17 Aug 2003 15:01:07 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.3RC4~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5a669caa6745c55c65a1201fae762a5b35c7998;p=php MFH --- diff --git a/ext/interbase/tests/004.phpt b/ext/interbase/tests/004.phpt index ef4b2d8a6c..c30523a3f7 100644 --- a/ext/interbase/tests/004.phpt +++ b/ext/interbase/tests/004.phpt @@ -67,14 +67,10 @@ InterBase: BLOB test echo "test blob 2\n"; $q = ibase_query("select v_blob from test4 where v_integer = 2"); - $row = ibase_fetch_object($q); - $bl_h = ibase_blob_open($row->V_BLOB); - $blob = ''; - while($piece = ibase_blob_get($bl_h, 1 + rand() % 1024)) - $blob .= $piece; - if($blob != $blob_str) + $row = ibase_fetch_object($q,IBASE_TEXT); + + if($row->V_BLOB != $blob_str) echo " BLOB 2 fail\n"; - ibase_blob_close($bl_h); ibase_free_result($q); unset($blob);