[php-src] Issue #20464: 3 pcre tests fail on 10.47 for PHP 8.5 RC5
| From: | andypost | Date: | Wed, 12 Nov 2025 15:59:45 +0000 |
| Subject: | [php-src] Issue #20464: 3 pcre tests fail on 10.47 for PHP 8.5 RC5 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-251211@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/20464
Author: andypost
### Description
Building for Alpinelinux where
pcre beed updated to 10.47 I see this failures every
arch
```
FAILED TEST SUMMARY
---------------------------------------------------------------------
preg_grep() 2nd test [ext/pcre/tests/grep2.phpt]
X (PCRE_EXTRA) modifier is ignored (no error, no change) [ext/pcre/tests/pcre_extra.phpt]
preg_split() [ext/pcre/tests/split.phpt]
```
details:
```
TEST 11570/19831 [ext/pcre/tests/grep2.phpt]
========DIFF========
001- Warning: preg_grep(): Compilation failed: quantifier does not follow a repeatable item at
offset 0 in %sgrep2.php on line %d
001+ Warning: preg_grep(): Compilation failed: quantifier does not follow a repeatable item at
offset 1 in /builds/alpine/aports/community/php85/src/php-8.5.0RC5/ext/pcre/tests/grep2.php on line
3
bool(false)
array(3) {
[5]=>
--
========DONE========
FAIL preg_grep() 2nd test [ext/pcre/tests/grep2.phpt]
TEST 11586/19831 [ext/pcre/tests/pcre_extra.phpt]
========DIFF========
001- Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 1 in
%spcre_extra.php on line 3
001+ Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 2 in
/builds/alpine/aports/community/php85/src/php-8.5.0RC5/ext/pcre/tests/pcre_extra.php on line 3
bool(false)
004- Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 1 in
%spcre_extra.php on line 4
004+ Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 2 in
/builds/alpine/aports/community/php85/src/php-8.5.0RC5/ext/pcre/tests/pcre_extra.php on line 4
bool(false)
========DONE========
FAIL X (PCRE_EXTRA) modifier is ignored (no error, no change) [ext/pcre/tests/pcre_extra.phpt]
TEST 11629/19831 [ext/pcre/tests/split.phpt]
========DIFF========
001- Warning: preg_split(): Compilation failed: quantifier does not follow a repeatable item at
offset 0 in %ssplit.php on line %d
001+ Warning: preg_split(): Compilation failed: quantifier does not follow a repeatable item at
offset 1 in /builds/alpine/aports/community/php85/src/php-8.5.0RC5/ext/pcre/tests/split.php on line
3
bool(false)
array(3) {
[0]=>
--
========DONE========
FAIL preg_split() [ext/pcre/tests/split.phpt]
```
### PHP Version
```plain
PHP 8.5 RC5
```
### Operating System
Alpinelinux