1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00

Replace zval_dtor() with specialized destructors

This commit is contained in:
Dmitry Stogov
2018-07-05 14:17:53 +03:00
parent 83f6f8563c
commit 91fc0d1a41

View File

@@ -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);