1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00
Files
archived-php-src/Zend/tests/bug41633_2.phpt
Ilija Tovilo 9e097822e8 Fix lineno for all constant expressions
Fixes GH-8821
Closes GH-8855
2023-02-02 19:03:47 +01:00

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