]> granicus.if.org Git - php/commitdiff
Test fetching BLOBs >64k
authorArd Biesheuvel <abies@php.net>
Sun, 17 Aug 2003 14:58:33 +0000 (14:58 +0000)
committerArd Biesheuvel <abies@php.net>
Sun, 17 Aug 2003 14:58:33 +0000 (14:58 +0000)
ext/interbase/tests/004.phpt

index ef4b2d8a6cee715da0d5bb0de6ac670147da19c7..c30523a3f71d05a4741fff711ac2aa29cd2e0939 100644 (file)
@@ -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);