tony2001 Thu Apr 28 10:10:43 2005 EDT
Modified files:
/php-src/ext/oci8 oci8.c
Log:
handle unsupported datatype (OCIBindByName segfaults somewhere in OCI lib when
unknown type is provided)
http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.266&r2=1.267&ty=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.266 php-src/ext/oci8/oci8.c:1.267
--- php-src/ext/oci8/oci8.c:1.266 Thu Jan 20 13:39:48 2005
+++ php-src/ext/oci8/oci8.c Thu Apr 28 10:10:42 2005
@@ -22,7 +22,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.266 2005/01/20 18:39:48 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.267 2005/04/28 14:10:42 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.266 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.267 $");
sprintf(buf, "%ld", num_persistent);
php_info_print_table_row(2, "Active Persistent Links", buf);
@@ -3694,6 +3694,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