dis-bench / src /php /php-src /Zend /tests /constants /class_constants_007.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
252 Bytes
--TEST--
Ownership of constant expression inherited from immutable class should be tranferred to class
--FILE--
<?php
class A {
const X = ' ' . self::Y;
const Y = ' ';
}
eval('class B extends A{}');
var_dump(B::X);
?>
--EXPECT--
string(2) " "