diff options
author | Matt Wilmas <mattwil@php.net> | 2009-06-05 18:50:10 +0000 |
---|---|---|
committer | Matt Wilmas <mattwil@php.net> | 2009-06-05 18:50:10 +0000 |
commit | e9b382cc2e8cd31b392e9a1915ecae98848f23cc (patch) | |
tree | 09b23253ab64fa05526b8e90cd66d40e1b0d49fc /ext/pcre/php_pcre.c | |
parent | 88127e23280dd94b7c8b443e147c4ad8e4ba5b21 (diff) | |
download | php-git-e9b382cc2e8cd31b392e9a1915ecae98848f23cc.tar.gz |
Added zend_eval_stringl and made create_function(), etc. binary-safe
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 81b3d6bc14..d63c3a1910 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1025,7 +1025,7 @@ static int preg_do_eval(char *eval_str, int eval_str_len, char *subject, UG(runtime_encoding_conv) = UG(utf8_conv); compiled_string_description = zend_make_compiled_string_description("regexp code" TSRMLS_CC); /* Run the code */ - if (zend_eval_string(code.c, &retval, compiled_string_description TSRMLS_CC) == FAILURE) { + if (zend_eval_stringl(code.c, code.len, &retval, compiled_string_description TSRMLS_CC) == FAILURE) { efree(compiled_string_description); UG(runtime_encoding_conv) = orig_runtime_conv; php_error_docref(NULL TSRMLS_CC,E_ERROR, "Failed evaluating code: %s%s", PHP_EOL, code.c); |