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
252 B
PHP
14 lines
252 B
PHP
--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) " "
|