xref: /PHP-7.2/Zend/tests/bug47572.phpt (revision 1b565f13)
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--
17Warning: Use of undefined constant FOO - assumed 'FOO' (this will throw an Error in a future version of PHP) in %s on line %d
18