cvs: pecl /ingres CHANGELOG ii.c

From: Date: Wed, 13 Dec 2006 13:47:06 +0000
Subject: cvs: pecl /ingres CHANGELOG ii.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6796@lists.php.net to get a copy of this message
grantc Wed Dec 13 13:47:06 2006 UTC Modified files: /pecl/ingres ii.c CHANGELOG Log: Fixed spurious E_WARNING with empty LOB dataset http://cvs.php.net/viewvc.cgi/pecl/ingres/ii.c?r1=1.83&r2=1.84&diff_format=u Index: pecl/ingres/ii.c diff -u pecl/ingres/ii.c:1.83 pecl/ingres/ii.c:1.84 --- pecl/ingres/ii.c:1.83 Wed Dec 13 09:39:04 2006 +++ pecl/ingres/ii.c Wed Dec 13 13:47:05 2006 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ii.c,v 1.83 2006/12/13 09:39:04 grantc Exp $ */ +/* $Id: ii.c,v 1.84 2006/12/13 13:47:05 grantc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -510,7 +510,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Ingres Support", "enabled"); php_info_print_table_row(2, "Ingres Extension Version", II_VERSION); - php_info_print_table_row(2, "Revision", "$Revision: 1.83 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.84 $"); sprintf(buf, "%ld", IIAPI_VERSION ); php_info_print_table_row(2, "Ingres OpenAPI Version", buf); sprintf(buf, "%ld", IIG(num_persistent)); @@ -2571,12 +2571,21 @@ IIapi_getColumns(&getColParm); ii_sync(&(getColParm.gc_genParm)); - if (ii_success(&(getColParm.gc_genParm), ii_link TSRMLS_CC) != II_OK) + switch (ii_success(&(getColParm.gc_genParm), ii_link TSRMLS_CC)) { - efree(lob_segment); - efree(columnData); - php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occured whilst fetching a BLOB"); - RETURN_FALSE; + case II_OK: + break; + case II_NO_DATA: + efree(lob_segment); + efree(columnData); + RETURN_FALSE; + break; + default: + efree(lob_segment); + efree(columnData); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occured whilst fetching a BLOB"); + RETURN_FALSE; + break; } if (columnData[0].dv_null) http://cvs.php.net/viewvc.cgi/pecl/ingres/CHANGELOG?r1=1.25&r2=1.26&diff_format=u Index: pecl/ingres/CHANGELOG diff -u pecl/ingres/CHANGELOG:1.25 pecl/ingres/CHANGELOG:1.26 --- pecl/ingres/CHANGELOG:1.25 Wed Dec 13 09:39:04 2006 +++ pecl/ingres/CHANGELOG Wed Dec 13 13:47:06 2006 @@ -1,4 +1,5 @@ CVS +- Fixed spurious E_WARNING with empty LOB dataset [grantc 13-11-06] - Fixed SEGV when ingres_close() is not called [grantc 13-11-06] - Fixed auto commit cannot be enabled on shutdown [grantc 27-11-06] - Fixed Array index start for php_ii_field_name [grantc 20-11-06]

« previous php.pecl.cvs (#6796) next »