Lines Matching refs:replace

1169 	char			*replace=NULL,		/* Replacement string */  in php_pcre_replace_impl()  local
1197 replace = Z_STRVAL_P(replace_val); in php_pcre_replace_impl()
1198 replace_end = replace + Z_STRLEN_P(replace_val); in php_pcre_replace_impl()
1268 if (EXPECTED(replace)) { in php_pcre_replace_impl()
1270 walk = replace; in php_pcre_replace_impl()
1307 walk = replace; in php_pcre_replace_impl()
1427 static zend_string *php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, in… in php_replace_in_subject() argument
1446 replace_value = replace; in php_replace_in_subject()
1457 if (Z_TYPE_P(replace) == IS_ARRAY && !is_callable_replace) { in php_replace_in_subject()
1459 while (replace_idx < Z_ARRVAL_P(replace)->nNumUsed) { in php_replace_in_subject()
1460 if (Z_TYPE(Z_ARRVAL_P(replace)->arData[replace_idx].val) != IS_UNDEF) { in php_replace_in_subject()
1461 ZVAL_COPY(&replace_str, &Z_ARRVAL_P(replace)->arData[replace_idx].val); in php_replace_in_subject()
1507 replace, in php_replace_in_subject()
1519 static int preg_replace_impl(zval *return_value, zval *regex, zval *replace, zval *subject, zend_lo… in preg_replace_impl() argument
1527 if (Z_TYPE_P(replace) != IS_ARRAY && (Z_TYPE_P(replace) != IS_OBJECT || !is_callable_replace)) { in preg_replace_impl()
1528 convert_to_string_ex(replace); in preg_replace_impl()
1543 …if ((result = php_replace_in_subject(regex, replace, subject_entry, limit_val, is_callable_replace… in preg_replace_impl()
1562 …if ((result = php_replace_in_subject(regex, replace, subject, limit_val, is_callable_replace, &rep… in preg_replace_impl()
1582 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1589 Z_PARAM_ZVAL(replace) in PHP_FUNCTION()
1596 if (Z_TYPE_P(replace) == IS_ARRAY && Z_TYPE_P(regex) != IS_ARRAY) { in PHP_FUNCTION()
1601 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 0, 0); in PHP_FUNCTION()
1613 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1621 Z_PARAM_ZVAL(replace) in PHP_FUNCTION()
1628 if (!zend_is_callable(replace, 0, &callback_name)) { in PHP_FUNCTION()
1636 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 1, 0); in PHP_FUNCTION()
1648 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; in PHP_FUNCTION() local
1663 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pattern), str_idx, replace) { in PHP_FUNCTION()
1672 if (!zend_is_callable(replace, 0, &callback_name)) { in PHP_FUNCTION()
1683 replace_count += preg_replace_impl(&zv, &regex, replace, subject, limit, 1, 0); in PHP_FUNCTION()
1685 replace_count += preg_replace_impl(&zv, &regex, replace, return_value, limit, 1, 0); in PHP_FUNCTION()
1710 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1717 Z_PARAM_ZVAL(replace) in PHP_FUNCTION()
1724 if (Z_TYPE_P(replace) == IS_ARRAY && Z_TYPE_P(regex) != IS_ARRAY) { in PHP_FUNCTION()
1729 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 0, 1); in PHP_FUNCTION()
2163 ZEND_ARG_INFO(0, replace)