Fixed bug#66004 (Parse error in an example of the namespace section)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332025 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2013-10-31 01:36:24 +00:00
parent acadfdd1b4
commit 32837406dd

View file

@ -1469,10 +1469,10 @@ name\func();
<programlisting role="php">
<![CDATA[
<?php
$a = new "dangerous\name"; // \n is a newline inside double quoted strings!
$a = "dangerous\name"; // \n is a newline inside double quoted strings!
$obj = new $a;
$a = new 'not\at\all\dangerous'; // no problems here.
$a = 'not\at\all\dangerous'; // no problems here.
$obj = new $a;
?>
]]>