mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Adjust zend_resolve_class_name() to not resolve special class names. This avoids the need to only call this function after a preliminary check for non-default fetch types. Doing so is somewhat fragile when dynamic class names are involved. Fixes oss-fuzz #31139.
8 lines
158 B
PHP
8 lines
158 B
PHP
--TEST--
|
|
Invalid constant class name in nested class constant access
|
|
--FILE--
|
|
<?php
|
|
[]::X::X;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Illegal class name in %s on line %d
|