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

index 19d2124dededc86bfe153613f784868366f5780f..e88c222ea3a3d6d1db117c51ab05fac303c2b9f0 100644 (file)
@@ -751,7 +751,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);
-               php_error_docref(NULL TSRMLS_CC,E_ERROR, "Failed evaluating code:\n%s", code);
+               php_error_docref(NULL TSRMLS_CC,E_ERROR, "Failed evaluating code:\n%s", code.c);
                /* zend_error() does not return in this case */
        }
        efree(compiled_string_description);