mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
13 lines
184 B
PHP
13 lines
184 B
PHP
--TEST--
|
|
Bug #41633.4 (self:: doesn't work for constants)
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
const A = self::B;
|
|
const B = "ok";
|
|
}
|
|
var_dump(defined("Foo::A"));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|