summaryrefslogtreecommitdiff
path: root/Zend/tests/bug47572.phpt
blob: 7a44cc6e7f9c9109ea191a23ff2dd8f9c0e5b7bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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