diff options
author | Daniela Mariaschi <daniela@php.net> | 2002-05-12 13:01:28 +0000 |
---|---|---|
committer | Daniela Mariaschi <daniela@php.net> | 2002-05-12 13:01:28 +0000 |
commit | cd114462633a8a4080f2daee709d4e861b14c831 (patch) | |
tree | e244c0901df96092d3aedc70373436cdf2c388a3 | |
parent | 844c90a39585ee43ae843fdfd200b840bc4aa2f4 (diff) | |
download | php-git-cd114462633a8a4080f2daee709d4e861b14c831.tar.gz |
fix bug #17040
User can't close a connection if there are blobs opened.
He must close them before to not lose data....
-rw-r--r-- | ext/interbase/interbase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 00f0ef1c25..918ab1f910 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -434,7 +434,7 @@ static void _php_ibase_free_query(ibase_query *ib_query) } isc_transaction_info(IB_STATUS, &ib_query->trans,sizeof(tr_items), tr_items, sizeof(tmp), tmp ); /* we have the trans still open and a statement to drop? */ - if ( !(IB_STATUS[0] && IB_STATUS[0]) && ib_query->stmt) { + if ( !(IB_STATUS[0] && IB_STATUS[1]) && ib_query->stmt) { IBDEBUG("Dropping statement handle (free_query)..."); if (isc_dsql_free_statement(IB_STATUS, &ib_query->stmt, DSQL_drop)){ _php_ibase_error(); @@ -465,7 +465,7 @@ static void _php_ibase_free_blob(zend_rsrc_list_entry *rsrc TSRMLS_DC) if (ib_blob->bl_handle != NULL) { /* blob open*/ if (isc_cancel_blob(IB_STATUS, &ib_blob->bl_handle)) { - _php_ibase_error(); + php_error(E_ERROR, "You can lose data. Close any blob after reading of writing it. Use ibase_blob_close() before calling ibase_close()"); } } efree(ib_blob); |