From da7d8f45b2cd530b0ce175a09afecf690ec7d943 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 19 Jan 2015 10:46:39 -0500 Subject: Optimized php_addslashes --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index bb28c2424c..1b3bd8f1de 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1026,7 +1026,7 @@ static zend_string *preg_do_eval(char *eval_str, int eval_str_len, char *subject match = subject + offsets[backref<<1]; match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; if (match_len) { - esc_match = php_addslashes(match, match_len, 0); + esc_match = php_addslashes_str(match, match_len, 0); } else { esc_match = zend_string_init(match, match_len, 0); } -- cgit v1.2.1