betz            Thu Aug 26 13:47:30 2004 EDT

  Modified files:              
    /phpdoc/en/reference/misc/functions php-check-syntax.xml 
  Log:
  correct example
  error_message is passed by ref as of 5.0.1
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/php-check-syntax.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/misc/functions/php-check-syntax.xml
diff -u phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.5 
phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.6
--- phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.5 Tue Aug 10 12:30:18 
2004
+++ phpdoc/en/reference/misc/functions/php-check-syntax.xml     Thu Aug 26 13:47:30 
2004
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <refentry id="function.php-check-syntax">
  <refnamediv>
   <refname>php_check_syntax</refname>
@@ -23,7 +23,7 @@
     <simpara>
      If the <parameter>error_message</parameter> parameter is used, it will
      contain the error message from the syntax check. <parameter>error_message
-     </parameter> must be passed in by <link linkend="language.references"> 
+     </parameter> is passed in by <link linkend="language.references"> 
      reference</link>.
     </simpara>
     <para>
@@ -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);

Reply via email to