com php-src: Replace zval_dtor() with specialized d estructors: ext/pdo_oci/oci_statement.c

From: Date: Thu, 05 Jul 2018 11:17:53 +0000
Subject: com php-src: Replace zval_dtor() with specialized d estructors: ext/pdo_oci/oci_statement.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102418@lists.php.net to get a copy of this message
Commit: 91fc0d1a4146eb44dc2b668e65aef9bbec4e071b Author: Dmitry Stogov <dmitry@zend.com> Thu, 5 Jul 2018 14:17:53 +0300 Parents: 83f6f8563cf776de2267124e0ebe8b6c0e9043a8 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=91fc0d1a4146eb44dc2b668e65aef9bbec4e071b Log: Replace zval_dtor() with specialized destructors Changed paths: M ext/pdo_oci/oci_statement.c Diff: diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c index eaf803b..10bb601 100644 --- a/ext/pdo_oci/oci_statement.c +++ b/ext/pdo_oci/oci_statement.c @@ -263,7 +263,7 @@ static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, d } convert_to_string(parameter); - zval_dtor(parameter); + zval_ptr_dtor_str(parameter); Z_STR_P(parameter) = zend_string_alloc(param->max_value_len, 1); P->used_for_output = 1; @@ -381,7 +381,7 @@ static int oci_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *pa /* OCI likes to stick non-terminated strings in things */ *Z_STRVAL_P(parameter) = '\0'; } - zval_dtor(parameter); + zval_ptr_dtor_str(parameter); ZVAL_UNDEF(parameter); } else if (Z_TYPE_P(parameter) == IS_STRING) { Z_STR_P(parameter) = zend_string_init(Z_STRVAL_P(parameter), P->actual_len, 1);

« previous php.cvs (#102418) next »