php-src/Zend/tests/class_constants_007.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
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) " "