mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
small text fixes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248035 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
09799fcd64
commit
318c767ee6
1 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<chapter xml:id="language.namespaces" xmlns="http://docbook.org/ns/docbook"
|
||||
version="1.1">
|
||||
<title>Namespaces</title>
|
||||
|
@ -293,7 +293,7 @@ set_error_handler(__NAMESPACE__ . "::foo");
|
|||
<orderedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
It looks for a function from the current namespace :
|
||||
It looks for a function from the current namespace:
|
||||
<literal>A::B::foo()</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
@ -311,27 +311,26 @@ set_error_handler(__NAMESPACE__ . "::foo");
|
|||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Inside namespace (say A::B), calls to unqualified class names are
|
||||
Inside namespace (say <literal>A::Bi</literal>), calls to unqualified class names are
|
||||
resolved at run-time. Here is how a call to
|
||||
<code>new C()</code> is resolved:
|
||||
</simpara>
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
It looks for a class from the current namespace :
|
||||
<literal>A::B::C()</literal>.
|
||||
It looks for a class from the current namespace:
|
||||
<literal>A::B::C</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
It tries to find and call the <emphasis>internal</emphasis> class
|
||||
<literal>C()</literal>.
|
||||
<literal>C</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
It attemts to autoload <literal>A::B::C()</literal>.
|
||||
<literal>C()</literal>.
|
||||
It attemts to autoload <literal>A::B::C</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
|
Loading…
Reference in a new issue