mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
9e097822e8
Fixes GH-8821 Closes GH-8855
16 lines
332 B
PHP
16 lines
332 B
PHP
--TEST--
|
|
Bug #41633.2 (Undefined class constants must not be substituted by strings)
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
const A = self::B;
|
|
}
|
|
echo Foo::A."\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): [constant expression]()
|
|
#1 {main}
|
|
thrown in %sbug41633_2.php on line 3
|