[php-src] Issue #11374: Different preg_match result with `-d pcre.jit=0`
| From: | mvorisek | Date: | Mon, 05 Jun 2023 10:24:45 +0000 |
| Subject: | [php-src] Issue #11374: Different preg_match result with `-d pcre.jit=0` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244600@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11374
Author: mvorisek
### Description
related with https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6997
## How to reproduce:
1. clone git@github.com:PHP-CS-Fixer/PHP-CS-Fixer.git (latest master or 3.17 tag)
2.
composer update
3. run php -d pcre.jit=0 vendor/phpunit/phpunit/phpunit --filter TypeExpressionTest
4. 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