]> granicus.if.org Git - php/commitdiff
Fix test case
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 6 Jan 2017 10:50:30 +0000 (11:50 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 6 Jan 2017 10:50:30 +0000 (11:50 +0100)
Unmatched subpatterns are reported as NULL as of commit ee6aaee8, so we
adjust the test accordingly.

ext/pcre/tests/request47456.phpt

index 2ba2627c8dc858083133c8b43af9cd46879eb07d..df054743dd9b82f36db3bac5cf6b00b988dbac00 100644 (file)
@@ -34,11 +34,11 @@ array(3) {
     ["chr"]=>
     string(1) "b"
     [1]=>
-    string(0) ""
+    NULL
     ["num"]=>
-    string(0) ""
+    NULL
     [2]=>
-    string(0) ""
+    NULL
     [3]=>
     string(1) "b"
   }
@@ -77,11 +77,11 @@ array(3) {
     ["chr"]=>
     string(1) "b"
     [1]=>
-    string(0) ""
+    NULL
     ["num"]=>
-    string(0) ""
+    NULL
     [2]=>
-    string(0) ""
+    NULL
     [3]=>
     string(1) "b"
   }