mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
c6eb5dc5fd
Fixes oss-fuzz #49068
16 lines
294 B
PHP
16 lines
294 B
PHP
--TEST--
|
|
ReflectionEnumBackedCase::getBackingValue() exception
|
|
--FILE--
|
|
<?php
|
|
enum Inm:int {
|
|
case Foo=y;
|
|
}
|
|
try {
|
|
var_dump((new ReflectionEnumBackedCase(Inm::class,'Foo'))->getBackingValue());
|
|
} catch (Error $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Undefined constant "y"
|