Changed namespace operator from :: to \ in example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278153 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2009-04-02 02:03:18 +00:00
parent d35a0da65d
commit 1134878a25

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<refentry xml:id="function.spl-autoload-register" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>spl_autoload_register</refname>
@ -89,7 +89,7 @@ class Foo {
}
}
spl_autoload_register(__NAMESPACE__ .'::Foo::test'); // As of PHP 5.3.0
spl_autoload_register(__NAMESPACE__ .'\Foo::test'); // As of PHP 5.3.0
new InexistentClass;
@ -99,8 +99,8 @@ new InexistentClass;
&example.outputs.similar;
<screen>
<![CDATA[
[[Foobar::InexistentClass]]
Fatal error: Class 'Foobar::InexistentClass' not found in ...
[[Foobar\InexistentClass]]
Fatal error: Class 'Foobar\InexistentClass' not found in ...
]]>
</screen>
</example>