php-src/Zend/tests/bug41633_4.phpt
2020-02-03 22:52:20 +01:00

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)