summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorMatt Wilmas <mattwil@php.net>2009-06-05 18:50:32 +0000
committerMatt Wilmas <mattwil@php.net>2009-06-05 18:50:32 +0000
commitd55300298e0e3ec0bdbb58ff3dcfda113d21852e (patch)
treef8efe461ea2aab77c8d712d7954c09fc481095b6 /ext/pcre
parenta80be6827dd734ddb33dbf8b177a3d70a20cd9b5 (diff)
downloadphp-git-d55300298e0e3ec0bdbb58ff3dcfda113d21852e.tar.gz
MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 7d414a3858..49161f2edf 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -913,7 +913,7 @@ static int preg_do_eval(char *eval_str, int eval_str_len, char *subject,
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);
php_error_docref(NULL TSRMLS_CC,E_ERROR, "Failed evaluating code: %s%s", PHP_EOL, code.c);
/* zend_error() does not return in this case */