cvs: php4 /ext/interbase interbase.c

From: Date: Sun, 12 May 2002 12:18:56 +0000
Subject: cvs: php4 /ext/interbase interbase.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11859@lists.php.net to get a copy of this message
daniela Sun May 12 08:18:56 2002 EDT Modified files: /php4/ext/interbase interbase.c Log: fix bug #17040 ibase_close again..... User can't close a connection if there are blobs opened. He must close them before to not loose data.... Index: php4/ext/interbase/interbase.c diff -u php4/ext/interbase/interbase.c:1.84 php4/ext/interbase/interbase.c:1.85 --- php4/ext/interbase/interbase.c:1.84 Thu May 9 17:57:49 2002 +++ php4/ext/interbase/interbase.c Sun May 12 08:18:56 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interbase.c,v 1.84 2002/05/09 21:57:49 daniela Exp $ */ +/* $Id: interbase.c,v 1.85 2002/05/12 12:18:56 daniela Exp $ */ /* TODO: Arrays, roles? @@ -435,7 +435,7 @@ } 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(); @@ -466,7 +466,7 @@ 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); @@ -608,7 +608,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "Interbase Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.84 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.85 $"); #ifdef COMPILE_DL_INTERBASE php_info_print_table_row(2, "Dynamic Module", "yes"); #endif

« previous php.cvs (#11859) next »