mirror of
https://github.com/php/php-src.git
synced 2025-01-22 19:54:13 +08:00
*** empty log message ***
This commit is contained in:
parent
925d48dae6
commit
a5a07063d2
@ -231,7 +231,7 @@ static pcre* _pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *preg_
|
|||||||
*preg_options = 0;
|
*preg_options = 0;
|
||||||
|
|
||||||
/* Parse through the options, setting appropriate flags. Display
|
/* Parse through the options, setting appropriate flags. Display
|
||||||
a warning if we encounter an unknown option. */
|
a warning if we encounter an unknown modifier. */
|
||||||
while (*pp != 0) {
|
while (*pp != 0) {
|
||||||
switch (*pp++) {
|
switch (*pp++) {
|
||||||
/* Perl compatible options */
|
/* Perl compatible options */
|
||||||
@ -255,7 +255,7 @@ static pcre* _pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *preg_
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
zend_error(E_WARNING, "Unknown option '%c'", pp[-1]);
|
zend_error(E_WARNING, "Unknown modifier '%c'", pp[-1]);
|
||||||
efree(pattern);
|
efree(pattern);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user