cvs: php4(PHP_4_3) /ext/oci8 oci8.c
| From: | Thies C. Arntzen | Date: | Fri, 02 May 2003 08:43:26 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/oci8 oci8.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20652@lists.php.net to get a copy of this message | ||
thies Fri May 2 04:43:26 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/oci8 oci8.c
Log:
@ - Fixed bug #23376 OCINewDescriptor
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.183.2.4 php4/ext/oci8/oci8.c:1.183.2.5
--- php4/ext/oci8/oci8.c:1.183.2.4 Wed Apr 30 06:20:14 2003
+++ php4/ext/oci8/oci8.c Fri May 2 04:43:25 2003
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.183.2.4 2003/04/30 10:20:14 sniper Exp $ */
+/* $Id: oci8.c,v 1.183.2.5 2003/05/02 08:43:25 thies Exp $ */
/* TODO list:
*
@@ -641,7 +641,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.4 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.5 $");
#ifndef PHP_WIN32
php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION );
php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR );
@@ -3616,6 +3616,10 @@
OCI_GET_CONN(connection,conn);
descr = oci_new_desc(dtype,connection);
+
+ if (! descr) {
+ RETURN_NULL();
+ }
object_init_ex(return_value, oci_lob_class_entry_ptr);
add_property_resource(return_value, "descriptor", descr->id);