From: Daniela Mariaschi Date: Wed, 2 Oct 2002 23:05:06 +0000 (+0000) Subject: syntax to avoid error while reading data from file in ibase_blob_import X-Git-Tag: php-4.3.0pre1~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69a6289e8cbb4c8cac54d704994bd5b6950fb283;p=php syntax to avoid error while reading data from file in ibase_blob_import --- diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 63e88bf7b2..368c6f3052 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -2882,8 +2882,7 @@ 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? */ - int type; - php_stream * stream; + php_stream *stream; RESET_ERRMSG; @@ -2926,7 +2925,7 @@ PHP_FUNCTION(ibase_blob_import) size = 0; - while(b = php_stream_read(stream, bl_data, 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(TSRMLS_C); RETURN_FALSE;