Skip to content

Commit 4f651de

Browse files
committed
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
1 parent 52f9f08 commit 4f651de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_ibase_udf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static void call_php(char *name, PARAMDSC *r, int argc, PARAMDSC **argv)
302302
}
303303
}
304304

305-
zval_dtor(&callback);
305+
zval_ptr_dtor_str(&callback);
306306

307307
/* return whatever type we got back from the callback: let DB handle conversion */
308308
switch (Z_TYPE(return_value)) {

0 commit comments

Comments
 (0)