From 83efacca497a2adceb9837d554fc37b02bc25bfa Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 22 Jul 2004 19:46:10 +0000 Subject: [PATCH] Added & to error_message methodsynopsis (it's passed in by reference) Compared use to php -l, and added some links and tags. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164034 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/php-check-syntax.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/reference/misc/functions/php-check-syntax.xml b/reference/misc/functions/php-check-syntax.xml index ebd292e366..e8a3a7dcbd 100644 --- a/reference/misc/functions/php-check-syntax.xml +++ b/reference/misc/functions/php-check-syntax.xml @@ -1,10 +1,10 @@ - + php_check_syntax - Check the syntax of the specified file + Check the PHP syntax of the specified file @@ -12,16 +12,19 @@ boolphp_check_syntax stringfile_name - stringerror_message + string&error_message The php_check_syntax function performs a syntax (lint) check on the specified filename testing - for scripting errors. + for scripting errors. This is similar to using php -l + from the commandline. - If the second parameter is passed, it will contain the error message - from the syntax check. This parameter must be passed by reference. + If the error_message parameter is used, it will + contain the error message from the syntax check. error_message + must be passed in by + reference. The following example shows how this function can be used.