[php-src] Issue #22322: spl_autoload() fails to load class with leading \

From: Date: Mon, 15 Jun 2026 21:24:32 +0000
Subject: [php-src] Issue #22322: spl_autoload() fails to load class with leading \
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-252201@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/22322 Author: jorgsowa ### Description The following code: ```php <?php spl_autoload("DualIterator"); var_dump(class_exists("DualIterator", false)); spl_autoload("\\RecursiveDualIterator"); var_dump(class_exists("RecursiveDualIterator", false)); ``` Resulted in this output: ``` bool(true) bool(false) ``` But I expected this output instead: ``` bool(true) bool(true) ``` ### PHP Version ```plain master ``` ### Operating System _No response_

« previous php.bugs (#252201) next »