mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
b1b79c74fb
This fixes oss-fuzz #47088
14 lines
257 B
PHP
14 lines
257 B
PHP
--TEST--
|
|
Ownership of constant expression inhereted from interface should be transfered 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"
|