tony2001 Thu Apr 28 10:12:24 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/oci8 oci8.c Log: MFH: handle unsupported datatypes and prevent segfault http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.257.2.6&r2=1.257.2.7&ty=u Index: php-src/ext/oci8/oci8.c diff -u php-src/ext/oci8/oci8.c:1.257.2.6 php-src/ext/oci8/oci8.c:1.257.2.7 --- php-src/ext/oci8/oci8.c:1.257.2.6 Thu Jan 20 13:42:40 2005 +++ php-src/ext/oci8/oci8.c Thu Apr 28 10:12:23 2005 @@ -22,7 +22,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci8.c,v 1.257.2.6 2005/01/20 18:42:40 tony2001 Exp $ */ +/* $Id: oci8.c,v 1.257.2.7 2005/04/28 14:12:23 tony2001 Exp $ */ /* TODO list: * @@ -786,7 +786,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "OCI8 Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.257.2.6 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.257.2.7 $"); sprintf(buf, "%ld", num_persistent); php_info_print_table_row(2, "Active Persistent Links", buf); @@ -3695,6 +3695,10 @@ } value_sz = sizeof(void*); break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown or unsupported datatype given: %u", ocitype); + RETURN_FALSE; + break; } if ((ocitype == SQLT_CHR) && (value_sz == -1)) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php