summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2015-08-13 14:20:04 +0200
committerChristoph M. Becker <cmb@php.net>2015-08-13 14:20:04 +0200
commitb9f23c2152eb635082e43e62a5c395b16f40054e (patch)
treeb41cd3b32408e7a7a2de3d15393996ddd182dd5d /sapi/cli/php_cli_server.c
parentf94bcb1026b9b38778804925d3247400422011e1 (diff)
downloadphp-git-b9f23c2152eb635082e43e62a5c395b16f40054e.tar.gz
Fix #70232: Incorrect bump-along behavior with \K and empty string match
To do global matching (/g), for every empty match we have to do a second match with PCRE_NOTEMPTY turned on. That may fail, however, when the \K escape sequence is involved. For this purpose libpcre 8.0 introduced the PCRE_NOTEMPTY_ATSTART flag, which we will use if available, and otherwise fall back to the old (possibly buggy) behavior.
Diffstat (limited to 'sapi/cli/php_cli_server.c')
0 files changed, 0 insertions, 0 deletions