summaryrefslogtreecommitdiff
path: root/Zend/tests/bug47572.phpt
blob: 1e424b350c4e9fc169a681af9745c7dfb5ec5f04 (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