Fixed bug #53575 (The "invalid HEREDOC" example is totally valid)

# Also fixed the <screen> tags to be inside examples for better markup rendering

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306478 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2010-12-20 01:35:53 +00:00
parent 776fca5c5e
commit b8045fcb12

View file

@ -244,7 +244,7 @@ echo 'Variables do not $expand $either';
class foo {
public $bar = <<<EOT
bar
EOT;
EOT;
}
?>
]]>
@ -295,14 +295,14 @@ EOT;
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
&example.outputs;
<screen>
<![CDATA[
My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A]]>
</screen>
</screen>
</example>
<para>
It is also possible to use the Heredoc syntax to pass data to function
@ -439,13 +439,14 @@ EOT;
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
&example.outputs;
<screen>
<![CDATA[
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41]]></screen>
This should not print a capital 'A': \x41]]>
</screen>
</example>
<note>
<para>