diff options
| author | Ard Biesheuvel <abies@php.net> | 2003-08-16 15:22:36 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <abies@php.net> | 2003-08-16 15:22:36 +0000 |
| commit | 69c8bac05ef7089a04e604e40271b625c4089706 (patch) | |
| tree | 087e9ea1d277060b98da34cf4a9b1728005bda78 /ext/interbase/tests | |
| parent | 0c7c8f4857094a896b53facb83c738318794204b (diff) | |
| download | php-git-69c8bac05ef7089a04e604e40271b625c4089706.tar.gz | |
Test for bug #24224
Diffstat (limited to 'ext/interbase/tests')
| -rw-r--r-- | ext/interbase/tests/004.phpt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ext/interbase/tests/004.phpt b/ext/interbase/tests/004.phpt index 1ed6415324..93ad3aa6db 100644 --- a/ext/interbase/tests/004.phpt +++ b/ext/interbase/tests/004.phpt @@ -17,8 +17,8 @@ InterBase: BLOB test v_blob blob)"); ibase_commit(); - /* create 10k blob file */ - $blob_str = rand_binstr(10*1024); + /* create 100k blob file */ + $blob_str = rand_binstr(100*1024); $name = tempnam(dirname(__FILE__),"blob.tmp"); $ftmp = fopen($name,"w"); @@ -39,7 +39,16 @@ InterBase: BLOB test while($piece = ibase_blob_get($bl_h, rand() % 1024)) $blob .= $piece; if($blob != $blob_str) - echo " BLOB 1 fail\n"; + echo " BLOB 1 fail (1)\n"; + ibase_blob_close($bl_h); + + $bl_h = ibase_blob_open($row->V_BLOB); + + $blob = ''; + while($piece = ibase_blob_get($bl_h, 100 * 1024)) + $blob .= $piece; + if($blob != $blob_str) + echo " BLOB 1 fail (2)\n"; ibase_blob_close($bl_h); ibase_free_result($q); unset($blob); |
