xref: /PHP-8.0/Zend/tests/bug47572.phpt (revision d30cd7d7)
1--TEST--
2Bug #47572 (zval_update_constant_ex: Segmentation fault)
3--FILE--
4<?php
5
6class Foo {
7  public static $bar = array(
8    FOO => "bar"
9    );
10
11}
12
13$foo = new Foo();
14
15?>
16--EXPECTF--
17Fatal error: Uncaught Error: Undefined constant "FOO" in %s:%d
18Stack trace:
19#0 {main}
20  thrown in %s on line %d
21