From 020610ee40fcabacf0330243dd4af1a2b599ce6b Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 20 Jan 2015 10:11:48 +0800 Subject: Remove addslashes_str --- 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 1b3bd8f1de..3e5d96eb90 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_str(match, match_len, 0); + esc_match = php_addslashes(zend_string_init(match, match_len, 0), 1); } else { esc_match = zend_string_init(match, match_len, 0); } -- cgit v1.2.1