1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Fix segfault in zend_test_execute_internal()
This commit is contained in:
Ilija Tovilo
2024-10-14 14:03:01 +02:00
2 changed files with 17 additions and 1 deletions

View File

@@ -288,7 +288,7 @@ static void zend_test_execute_internal(zend_execute_data *execute_data, zval *re
} else {
php_printf("%*s<!-- internal enter %s() -->\n", 2 * ZT_G(observer_nesting_depth), "", ZSTR_VAL(fbc->common.function_name));
}
} else {
} else if (ZEND_USER_CODE(fbc->type)) {
php_printf("%*s<!-- internal enter '%s' -->\n", 2 * ZT_G(observer_nesting_depth), "", ZSTR_VAL(fbc->op_array.filename));
}

View File

@@ -0,0 +1,16 @@
--TEST--
GH-16294: Segfault in test observer on zend_pass_function
--EXTENSIONS--
zend_test
--INI--
zend_test.observer.execute_internal=1
--FILE--
<?php
class Foo {};
new Foo([]);
?>
===DONE===
--EXPECT--
===DONE===