php-src/Zend/tests/class_constants_006.phpt
DanielEScherzer ea297654f4
Zend/*: fix a bunch of typos (GH-16017)
* Zend/*: fix a bunch of typos

* Zend/tests/try/try_catch_finally_005.phpt: update string length
2024-09-24 10:55:21 +02:00

14 lines
257 B
PHP

--TEST--
Ownership of constant expression inherited from interface should be tranferred to class
--FILE--
<?php
interface I {
const X2 = 'X' . self::Y2;
const Y2 = 'Y';
}
eval('class B implements I{}');
var_dump(B::X2);
?>
--EXPECT--
string(2) "XY"