Skip to content

Commit 00cffd9

Browse files
committed
test: update CLI test expectations for PREG_REPLACE_COUNT_CHANGES constant and preg_replace flags parameter
Add expected output for the new PREG_REPLACE_COUNT_CHANGES constant and the new optional $flags parameter in preg_replace function signature.
1 parent 70ad01b commit 00cffd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/cli/tests/006.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
4949
Constant [ <persistent> int PREG_SET_ORDER ] { 2 }
5050
Constant [ <persistent> int PREG_OFFSET_CAPTURE ] { 256 }
5151
Constant [ <persistent> int PREG_UNMATCHED_AS_NULL ] { 512 }
52+
Constant [ <persistent> int PREG_REPLACE_COUNT_CHANGES ] { 1 }
5253
Constant [ <persistent> int PREG_SPLIT_NO_EMPTY ] { 1 }
5354
Constant [ <persistent> int PREG_SPLIT_DELIM_CAPTURE ] { 2 }
5455
Constant [ <persistent> int PREG_SPLIT_OFFSET_CAPTURE ] { 4 }
@@ -97,6 +98,7 @@ string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
9798
Parameter #2 [ <required> array|string $subject ]
9899
Parameter #3 [ <optional> int $limit = -1 ]
99100
Parameter #4 [ <optional> &$count = null ]
101+
Parameter #5 [ <optional> int $flags = 0 ]
100102
}
101103
- Return [ array|string|null ]
102104
}

0 commit comments

Comments
 (0)