mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
c4a1100f19
Fixes oss-fuzz #57821
13 lines
213 B
PHP
13 lines
213 B
PHP
--TEST--
|
|
oss-fuzz #57821: Unevaluated rhs of class constant fetch in constant expression
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
const Foo = 'foo';
|
|
}
|
|
const C = Foo::{Foo::class};
|
|
var_dump(C);
|
|
?>
|
|
--EXPECT--
|
|
string(3) "foo"
|