]> granicus.if.org Git - php/commitdiff
fix error message
authorSascha Schumann <sas@php.net>
Thu, 28 Aug 2003 17:16:01 +0000 (17:16 +0000)
committerSascha Schumann <sas@php.net>
Thu, 28 Aug 2003 17:16:01 +0000 (17:16 +0000)
ext/pcre/php_pcre.c

index ea4022ea2b675c26f11c2aa69be0a2e7d7e674f7..e20712b38460bb2d5bc3f97d7d9c7856ff8a4aa9 100644 (file)
@@ -753,7 +753,7 @@ static int preg_do_eval(char *eval_str, int eval_str_len, char *subject,
        /* Run the code */
        if (zend_eval_string(code.c, &retval, compiled_string_description TSRMLS_CC) == FAILURE) {
                efree(compiled_string_description);
-               zend_error(E_ERROR, "Failed evaluating code:\n%s", code);
+               zend_error(E_ERROR, "Failed evaluating code:\n%s", code.c);
                /* zend_error() does not return in this case */
        }
        efree(compiled_string_description);