From 321de8efc26bf1cb878be4366d2996af6bf71c05 Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Thu, 26 Aug 2004 17:47:30 +0000 Subject: [PATCH] correct example error_message is passed by ref as of 5.0.1 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167312 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/php-check-syntax.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/misc/functions/php-check-syntax.xml b/reference/misc/functions/php-check-syntax.xml index c7df88fd9b..9dee2dd623 100644 --- a/reference/misc/functions/php-check-syntax.xml +++ b/reference/misc/functions/php-check-syntax.xml @@ -1,5 +1,5 @@ - + php_check_syntax @@ -23,7 +23,7 @@ If the error_message parameter is used, it will contain the error message from the syntax check. error_message - must be passed in by + is passed in by reference. @@ -37,7 +37,7 @@ $error_message = ""; $filename = "./tests.php"; -if(!php_check_syntax($filename, &$error_message)) { +if(!php_check_syntax($filename, $error_message)) { printf("Errors were found in the file %s:\n\n%s\n", $filename, $error_message); } else { printf("The file %s contained no syntax errors.", $filename);