mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
13 lines
159 B
Plaintext
13 lines
159 B
Plaintext
![]() |
--TEST--
|
||
|
Bug #41633.1 (self:: doesn't work for constants)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class Foo {
|
||
|
const A = self::B;
|
||
|
const B = "ok";
|
||
|
}
|
||
|
echo Foo::A."\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
ok
|