From cb2ed3b1ec93c50a2f8f6592cc407de2c9516661 Mon Sep 17 00:00:00 2001 From: "Jeremy S. Johnstone" Date: Thu, 22 Jul 2004 16:13:36 +0000 Subject: [PATCH] Documented this previously undocumented feature. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164018 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/php-check-syntax.xml | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/reference/misc/functions/php-check-syntax.xml b/reference/misc/functions/php-check-syntax.xml index 8af38a5ab3..8caf34fb0f 100644 --- a/reference/misc/functions/php-check-syntax.xml +++ b/reference/misc/functions/php-check-syntax.xml @@ -1,5 +1,5 @@ - + php_check_syntax @@ -14,9 +14,47 @@ stringfile_name stringerror_message + + The php_check_syntax function performs a syntax (lint) check + on the specified filename testing for scripting errors. + + + If the second parameter is passed, the function will return the error messages from the syntax + check. This parameter must be passed by reference. + + + The following example shows how this function can be used. + + <function>php_check_syntax</function> example + + +]]> + + + The output of the above script could look something like this: + + + + + +