mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
9e097822e8
Fixes GH-8821 Closes GH-8855
22 lines
333 B
PHP
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
|