From e5bae36a1abc97970291cc5dc50f4641df3afcde Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Sun, 17 Aug 2003 14:58:33 +0000 Subject: [PATCH] Test fetching BLOBs >64k --- ext/interbase/tests/004.phpt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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); -- 2.40.0