xref: /php-src/Zend/tests/bug41633_2.phpt (revision 9e097822)
1--TEST--
2Bug #41633.2 (Undefined class constants must not be substituted by strings)
3--FILE--
4<?php
5class Foo {
6    const A = self::B;
7}
8echo Foo::A."\n";
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
12Stack trace:
13#0 %s(%d): [constant expression]()
14#1 {main}
15  thrown in %sbug41633_2.php on line 3
16