php-src/Zend/tests/bug47572.phpt
Ilija Tovilo 9e097822e8
Fix lineno for all constant expressions
Fixes GH-8821
Closes GH-8855
2023-02-02 19:03:47 +01:00

22 lines
333 B
PHP

--TEST--
Bug #47572 (zval_update_constant_ex: Segmentation fault)
--FILE--
<?php
class Foo {
public static $bar = array(
FOO => "bar"
);
}
$foo = new Foo();
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant "FOO" in %s:%d
Stack trace:
#0 %s(%d): [constant expression]()
#1 {main}
thrown in %s on line %d