mirror of
https://github.com/php/php-src.git
synced 2024-11-30 13:25:43 +08:00
Merge branch 'PHP-7.3'
* PHP-7.3: Fix regex Fix regex
This commit is contained in:
commit
3c0ac24258
@ -431,7 +431,7 @@ check_fmt(struct magic_set *ms, const char *fmt)
|
||||
return 0;
|
||||
|
||||
(void)setlocale(LC_CTYPE, "C");
|
||||
pattern = zend_string_init("~%[-0-9.]*s~", sizeof("~%[-0-9.]*s~") - 1, 0);
|
||||
pattern = zend_string_init("~%[-0-9\\.]*s~", sizeof("~%[-0-9\\.]*s~") - 1, 0);
|
||||
if ((pce = pcre_get_compiled_regex(pattern, &capture_count, &re_options)) == NULL) {
|
||||
rv = -1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user