xref: /PHP-8.3/Zend/tests/bug47572.phpt (revision 9e097822)
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 %s(%d): [constant expression]()
20#1 {main}
21  thrown in %s on line %d
22