[php-src] Issue #8167: PHP 8.1.3 *Iterator bug

From: Date: Thu, 03 Mar 2022 16:47:40 +0000
Subject: [php-src] Issue #8167: PHP 8.1.3 *Iterator bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240166@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8167 Comment Author: iluuu1994 Hi @Vermond125! Can you provide the full code (including the printing of "file found")? And maybe also provide the contents of $path and $this->fileExtension? I created this test-script and it seems to work fine. ```php <?php $file_extension = '.phpt'; $iterator = new RegexIterator( new RecursiveIteratorIterator( new RecursiveDirectoryIterator(__DIR__, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::LEAVES_ONLY ), '/^.+' . preg_quote($file_extension) . '$/i', RecursiveRegexIterator::GET_MATCH ); var_dump(iterator_to_array($iterator)); ```

« previous php.bugs (#240166) next »