diff options
-rw-r--r-- | ext/interbase/interbase.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 22b2baf7ba..42b4a9905c 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -2870,7 +2870,6 @@ PHP_FUNCTION(ibase_blob_import) ibase_blob_handle ib_blob; ibase_db_link *ib_link; char bl_data[IBASE_BLOB_SEG]; /* FIXME? blob_seg_size parameter? */ - void * what; int type; php_stream * stream; @@ -2916,7 +2915,7 @@ PHP_FUNCTION(ibase_blob_import) size = 0; - while(b = php_stream_read((php_stream*)what, bl_data, 1, sizeof(bl_data)) > 0) { + while(b = php_stream_read(stream, bl_data, sizeof(bl_data)) > 0) { if (isc_put_segment(IB_STATUS, &ib_blob.bl_handle, b, bl_data)) { _php_ibase_error(); RETURN_FALSE; |