mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
ea297654f4
* Zend/*: fix a bunch of typos * Zend/tests/try/try_catch_finally_005.phpt: update string length
14 lines
257 B
PHP
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"
|