File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ PHP NEWS
14
14
. Fixed bug #77773 (Unbuffered queries leak memory - MySQLi / mysqlnd).
15
15
(Nikita)
16
16
17
+ - PCRE:
18
+ . Fixed bug #77827 (preg_match does not ignore \r in regex flags). (requinix,
19
+ cmb)
20
+
17
21
- phpdbg:
18
22
. Fixed bug #76801 (too many open files). (alekitto)
19
23
. Fixed bug #77800 (phpdbg segfaults on listing some conditional breakpoints).
Original file line number Diff line number Diff line change @@ -695,6 +695,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
695
695
696
696
case ' ' :
697
697
case '\n' :
698
+ case '\r' :
698
699
break ;
699
700
700
701
default :
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #77827 (preg_match does not ignore \r in regex flags)
3
+ --FILE--
4
+ <?php
5
+ var_dump (
6
+ preg_match ("/foo/i \r" , 'FOO ' ),
7
+ preg_last_error ()
8
+ );
9
+ ?>
10
+ ===DONE===
11
+ --EXPECT--
12
+ int(1)
13
+ int(0)
14
+ ===DONE===
You can’t perform that action at this time.
0 commit comments