diff options
author | Xinchen Hui <laruence@php.net> | 2015-01-19 10:46:39 -0500 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-01-19 10:46:39 -0500 |
commit | da7d8f45b2cd530b0ce175a09afecf690ec7d943 (patch) | |
tree | 9ae851fecf8c9f7244e645e142e012250ccb26ee /ext/pcre/php_pcre.c | |
parent | 137a251a52576fec8f4728630095092471569911 (diff) | |
download | php-git-da7d8f45b2cd530b0ce175a09afecf690ec7d943.tar.gz |
Optimized php_addslashes
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |