philip          Mon Apr  4 16:26:10 2005 EDT

  Modified files:              
    /phpdoc/en/reference/misc/functions php-check-syntax.xml 
  Log:
  This function was removed from PHP 5.1.0
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/php-check-syntax.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/misc/functions/php-check-syntax.xml
diff -u phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.9 
phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.10
--- phpdoc/en/reference/misc/functions/php-check-syntax.xml:1.9 Tue Jan 25 
15:00:24 2005
+++ phpdoc/en/reference/misc/functions/php-check-syntax.xml     Mon Apr  4 
16:26:08 2005
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <refentry id="function.php-check-syntax">
  <refnamediv>
   <refname>php_check_syntax</refname>
@@ -15,6 +15,11 @@
    <methodparam choice="opt"><type>string</type><parameter 
role="reference">error_message</parameter></methodparam>
   </methodsynopsis>
   <simpara>
+   For technical reasons, this function is deprecated and removed from PHP. 
+   Instead, use <literal>php -l somefile.php</literal> from the 
+   <link linkend="features.commandline">commandline</link>.
+  </simpara>
+  <simpara>
    The <function>php_check_syntax</function> function performs a syntax 
    (lint) check on the specified <parameter>filename</parameter> testing
    for scripting errors.  This is similar to using <command>php -l</command>
@@ -74,6 +79,12 @@
      </thead>
      <tbody>
       <row>
+       <entry>5.1.0</entry>
+       <entry>
+        This function was removed from PHP.
+       </entry>
+      </row>
+      <row>
        <entry>5.0.3</entry>
        <entry>
         Calling <function>exit</function> after 
@@ -94,33 +105,19 @@
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
-   <example>
-    <title><function>php_check_syntax</function> example</title>
-    <programlisting role="php">
+   <screen>
 <![CDATA[
-<?php
-
-$error_message = "";
-$filename = "./tests.php";
-
-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);
-}
-
-?>
+php -l somefile.php
 ]]>
-    </programlisting>
-    &example.outputs.similar;
-    <screen>
+   </screen>
+  </para>
+  &example.outputs.similar;
+  <para>
+   <screen>
 <![CDATA[
-Errors were found in the file ./tests.php:
-
-parse error, unexpected T_STRING in /tmp/tests.php on line 81
+PHP Parse error: unexpected T_STRING in /tmp/somefile.php on line 81
 ]]>
-    </screen>
-   </example>
+   </screen>
   </para>    
  </refsect1>
  <refsect1 role="seealso">

Reply via email to