File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -396,11 +396,16 @@ Feature: Do global search/replace
396396 https://example.com
397397 """
398398
399+ # NOTE: The preg_match() error message is a substring of the actual message that matches across supported PHP versions.
400+ # In PHP 8.2, the error message changed from
401+ # "preg_match(): Delimiter must not be alphanumeric or backslash."
402+ # to
403+ # "preg_match(): Delimiter must not be alphanumeric, backslash, or NUL"
399404 When I try `wp search-replace 'HTTPS://EXAMPLE.COM' 'https://example.jp/' wp_options --regex --regex-flags=i --regex-delimiter='1' `
400- Then STDERR should be :
405+ Then STDERR should contain :
401406 """
402407 Error: The regex '1HTTPS://EXAMPLE.COM1i' fails.
403- preg_match(): Delimiter must not be alphanumeric or backslash.
408+ preg_match(): Delimiter must not be alphanumeric
404409 """
405410 And the return code should be 1
406411
You can’t perform that action at this time.
0 commit comments