From: Máté Kocsis Date: Sat, 13 Jun 2020 08:53:49 +0000 (+0200) Subject: Fix ZPP of OCI_Lob::free X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=793823655e91022f7053ce5d64c7c623e5f9a5c2;p=php Fix ZPP of OCI_Lob::free --- diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c index 299788cab6..b296274745 100644 --- a/ext/oci8/oci8_interface.c +++ b/ext/oci8/oci8_interface.c @@ -262,13 +262,11 @@ PHP_FUNCTION(oci_bind_array_by_name) Deletes large object description */ PHP_FUNCTION(oci_free_descriptor) { - zval *tmp, *z_descriptor = getThis(); + zval *tmp, *z_descriptor; php_oci_descriptor *descriptor; - if (!getThis()) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) { - RETURN_THROWS(); - } + if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) { + RETURN_THROWS(); } if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {