Doc #78312 [Opn->Fbk]: Different results between 7.3.7 and 7.4
| From: | sjon@php.net | Date: | Fri, 19 Jul 2019 12:59:00 +0000 |
| Subject: | Doc #78312 [Opn->Fbk]: Different results between 7.3.7 and 7.4 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16831@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78312&edit=1
ID: 78312
Updated by: sjon@php.net
Reported by: oleg at andreyev dot lv
Summary: Different results between 7.3.7 and 7.4
-Status: Open
+Status: Feedback
Type: Documentation Problem
Package: *Regular Expressions
Operating System: Linux
PHP Version: 7.4Git-2019-07-19 (Git)
-Assigned To:
+Assigned To: sjon
Block user comment: N
Private report: N
New Comment:
Actually the output in 7.4 seems to be correct as before the offset was completely missing. This was
fixed in Bug #73948
also - the output in 7.4 actually matches the documentation better - don't you agree?
Previous Comments:
------------------------------------------------------------------------
[2019-07-19 12:48:22] danack@php.net
To avoid confusion, on PHP <7.4 the output is:
array(15) {
[0]=>
string(0) ""
[1]=>
string(0) ""
[2]=>
string(0) ""
[3]=>
string(0) ""
[4]=>
string(0) ""
[5]=>
string(0) ""
[6]=>
string(0) ""
[7]=>
string(0) ""
[8]=>
string(0) ""
[9]=>
string(0) ""
[10]=>
string(0) ""
[11]=>
string(0) ""
[12]=>
string(0) ""
[13]=>
string(0) ""
[14]=>
string(0) ""
}
Output on > 7.4
array(15) {
[0]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[1]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[2]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[3]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[4]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[5]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[6]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[7]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[8]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[9]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[10]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[11]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[12]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[13]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
[14]=>
array(2) {
[0]=>
string(0) ""
[1]=>
int(-1)
}
}
------------------------------------------------------------------------
[2019-07-19 12:41:24] oleg at andreyev dot lv
Description:
------------
When running
preg_match_all on 7.3.7 and 7.4 getting different results on
Test script:
---------------
https://3v4l.org/lvdlR
Expected result:
----------------
-
Actual result:
--------------
-
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78312&edit=1