diff options
author | Hannes Magnusson <bjori@php.net> | 2011-09-12 11:44:55 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2011-09-12 11:44:55 +0000 |
commit | ee27f57095cc337aed2c066960ec38087cb5ddae (patch) | |
tree | 02f6a0db983fb166e2cfd0198c986fc2a15e5128 /ext/pcre/php_pcre.c | |
parent | ee1ed6743edcc236490f681e57667a029057f4c5 (diff) | |
download | php-git-ee27f57095cc337aed2c066960ec38087cb5ddae.tar.gz |
Ensure we are working with strings here
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 41fdb32a7b..4deb58cb3e 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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; |