]> granicus.if.org Git - php/commitdiff
@ - Fixed bug #23376 OCINewDescriptor
authorThies C. Arntzen <thies@php.net>
Fri, 2 May 2003 08:43:25 +0000 (08:43 +0000)
committerThies C. Arntzen <thies@php.net>
Fri, 2 May 2003 08:43:25 +0000 (08:43 +0000)
ext/oci8/oci8.c

index c5a6011f17e366a45edda02035bef5b0684d1714..54befe8bb4e153072a02236cf68afd69942e08b1 100644 (file)
@@ -3617,6 +3617,10 @@ PHP_FUNCTION(ocinewdescriptor)
 
        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);
 }