Skip to content

Commit c0f21bb

Browse files
committed
PHP 8.6: zval_dtor() has been deprecated in favour of zval_ptr_dtor_nogc()
1 parent 68c8a64 commit c0f21bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/base/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int xdebug_include_or_eval_handler(XDEBUG_OPCODE_HANDLER_ARGS)
192192
XG_BASE(last_eval_statement) = zend_string_init(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename), 0);
193193

194194
if (inc_filename == &tmp_inc_filename) {
195-
zval_dtor(&tmp_inc_filename);
195+
zval_ptr_dtor_nogc(&tmp_inc_filename);
196196
}
197197

198198
return xdebug_call_original_opcode_handler_if_set(opline->opcode, XDEBUG_OPCODE_HANDLER_ARGS_PASSTHRU);

src/debugger/debugger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ void xdebug_debugger_statement_call(zend_string *filename, int lineno)
467467
res = xdebug_do_eval(extra_brk_info->condition, &retval, NULL);
468468
if (res) {
469469
break_ok = Z_TYPE(retval) == IS_TRUE;
470-
zval_dtor(&retval);
470+
zval_ptr_dtor_nogc(&retval);
471471
}
472472
}
473473
if (break_ok && xdebug_handle_hit_value(extra_brk_info)) {

src/debugger/handler_dbgp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ DBGP_FUNC(property_set)
19371937
/* don't send an error, send success = zero */
19381938
xdebug_xml_add_attribute(*retval, "success", "0");
19391939
} else {
1940-
zval_dtor(&ret_zval);
1940+
zval_ptr_dtor_nogc(&ret_zval);
19411941
xdebug_xml_add_attribute(*retval, "success", "1");
19421942
}
19431943
}

0 commit comments

Comments
 (0)