Closed
Description
Description
related with PHP-CS-Fixer/PHP-CS-Fixer#6997
How to reproduce:
- clone
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git
(latest master or 3.17 tag) - run
composer update
- run
php -d pcre.jit=0 vendor/phpunit/phpunit/phpunit --filter TypeExpressionTest
- the tests will fail, and notice, with
-d pcre.jit=1
the tests are passing
Expected result:
pcre.jit
config should have no effect on the preg_match result
The problematic regex is probably https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.17.0/src/DocBlock/TypeExpression.php#L32 - is there any easy workaround until php-src/PCRE is fixed?
PHP Version
PHP 7.4 - 8.2
Operating System
Windows and Unix