#define _isblank(c) (((((unsigned char) c) == ' ' || ((unsigned char) c) == '\t')) ? 1 : 0)
#define _isnewline(c) (((((unsigned char) c) == '\n' || ((unsigned char) c) == '\r')) ? 1 : 0)
-/* {{{ php_str_replace_in_subject
- */
-static zend_long php_str_replace_in_subject(zval *search, zval *replace, zval *subject, zval *result, int case_sensitivity)
+/* {{{ php_str_replace_in_subject */
+static zend_long php_str_replace_in_subject(zval *search, zval *replace, zend_string *subject_str, zval *result, int case_sensitivity)
{
- zval *search_entry,
- *replace_entry = NULL;
- zend_string *tmp_result,
- *tmp_replace_entry_str = NULL,
- *replace_entry_str;
+ zval *search_entry;
- zend_string *tmp_result,
- *tmp_subject_str;
++ zend_string *tmp_result;
char *replace_value = NULL;
size_t replace_len = 0;
zend_long replace_count = 0;