Skip to content

Commit 91fc0d1

Browse files
committed
Replace zval_dtor() with specialized destructors
1 parent 83f6f85 commit 91fc0d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pdo_oci/oci_statement.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, d
263263
}
264264

265265
convert_to_string(parameter);
266-
zval_dtor(parameter);
266+
zval_ptr_dtor_str(parameter);
267267

268268
Z_STR_P(parameter) = zend_string_alloc(param->max_value_len, 1);
269269
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
381381
/* OCI likes to stick non-terminated strings in things */
382382
*Z_STRVAL_P(parameter) = '\0';
383383
}
384-
zval_dtor(parameter);
384+
zval_ptr_dtor_str(parameter);
385385
ZVAL_UNDEF(parameter);
386386
} else if (Z_TYPE_P(parameter) == IS_STRING) {
387387
Z_STR_P(parameter) = zend_string_init(Z_STRVAL_P(parameter), P->actual_len, 1);

0 commit comments

Comments
 (0)