php-src/Zend/tests/gh10486.phpt
Ilija Tovilo 35a36b13e5
Fix comp-time and constant evaluation of dynamic class constant fetch
Fixes GH-10486
Fixes oss-fuzz #55436
Fixes oss-fuzz #55472
Closes GH-10487
2023-02-02 19:18:17 +01:00

12 lines
236 B
PHP

--TEST--
Assertion error when attempting comp-time eval of dynamic class constant fetch
--FILE--
<?php
y::{5}::y;
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "y" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d