mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
d35a0da65d
commit
1134878a25
1 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue