Browse Source

Ensure we are working with strings here

pull/271/head
Hannes Magnusson 15 years ago
parent
commit
ee27f57095
  1. 1
      ext/pcre/php_pcre.c

1
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;

Loading…
Cancel
Save