From 793823655e91022f7053ce5d64c7c623e5f9a5c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sat, 13 Jun 2020 10:53:49 +0200 Subject: [PATCH] Fix ZPP of OCI_Lob::free --- ext/oci8/oci8_interface.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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) { -- 2.50.1