[php-src] Issue #10267: regular expressions don't work in 8.1.13 and 8.1.14
| From: | awn-wgg | Date: | Sun, 08 Jan 2023 18:55:40 +0000 |
| Subject: | [php-src] Issue #10267: regular expressions don't work in 8.1.13 and 8.1.14 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243371@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10267
Author: awn-wgg
### Description
The following code:
$text = 'src="index.php?act=captcha&{$random}" width="145"';
preg_match_all("/\{\s*\$([a-z\d]+)\s*\}/", $text, $matches);
print_r($matches);
Resulted in this output:
Array ( [0] => Array ( ) [1] => Array ( ) )
But I expected this output instead:
must be found '$random' and 'random'
### PHP Version
PHP 8.1.14 and PHP 8.1.13
### Operating System
windows7