php-src/Zend/tests/class_constants_006.phpt
Dmitry Stogov b1b79c74fb Fix memory leak
This fixes oss-fuzz #47088
2022-05-11 11:43:01 +03:00

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"