summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2011-09-12 11:44:55 +0000
committerHannes Magnusson <bjori@php.net>2011-09-12 11:44:55 +0000
commit7bb31903c8baa07a71c797dfe1491056636a7c9c (patch)
treea5bf8fa87d8bdff24d9da1fd692467b6ca18f507 /ext/pcre/php_pcre.c
parent17858fc78920fce3bf830c80627f4293f2818650 (diff)
downloadphp-git-7bb31903c8baa07a71c797dfe1491056636a7c9c.tar.gz
Ensure we are working with strings here
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c1
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;