rquadling Fri May 4 12:41:16 2007 UTC
Modified files: /phpdoc/en/language basic-syntax.xml Log: Fix #41281 - include comment about newline being absorbed by "end of php block". http://cvs.php.net/viewvc.cgi/phpdoc/en/language/basic-syntax.xml?r1=1.49&r2=1.50&diff_format=u Index: phpdoc/en/language/basic-syntax.xml diff -u phpdoc/en/language/basic-syntax.xml:1.49 phpdoc/en/language/basic-syntax.xml:1.50 --- phpdoc/en/language/basic-syntax.xml:1.49 Sun Nov 6 18:00:32 2005 +++ phpdoc/en/language/basic-syntax.xml Fri May 4 12:41:15 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.49 $ --> +<!-- $Revision: 1.50 $ --> <chapter id="language.basic-syntax"> <title>Basic syntax</title> <sect1 id="language.basic-syntax.phpmode"> @@ -43,7 +43,10 @@ </programlisting> </example> This works as expected, because when PHP hits the ?> closing - tags, it simply starts outputting whatever it finds until it hits + tags, it simply starts outputting whatever it finds (except for an + immediately following newline - see + <link linkend="language.basic-syntax.instruction-separation">instruction separation</link> + ) until it hits another opening tag. The example given here is contrived, of course, but for outputting large blocks of text, dropping out of PHP parsing mode is generally more efficient than sending all of