mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
Ensure we are working with strings here
This commit is contained in:
parent
ddac8c1789
commit
5e661cf904
@ -1013,6 +1013,7 @@ PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int sub
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
convert_to_string_ex(&replace_val);
|
||||
replace = Z_STRVAL_P(replace_val);
|
||||
replace_len = Z_STRLEN_P(replace_val);
|
||||
replace_end = replace + replace_len;
|
||||
|
Loading…
Reference in New Issue
Block a user