mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
d30cd7d7e7
Closes GH-5590
21 lines
298 B
PHP
21 lines
298 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 {main}
|
|
thrown in %s on line %d
|