Bug #54363 [Opn->Csd]: Namespaces: incorrect documentation example explanation

From: Date: Thu, 24 Mar 2011 06:31:02 +0000
Subject: Bug #54363 [Opn->Csd]: Namespaces: incorrect documentation example explanation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6132@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54363&edit=1 ID: 54363 Updated by: aharvey@php.net Reported by: mary dot kulagina at gmail dot com Summary: Namespaces: incorrect documentation example explanation -Status: Open +Status: Closed Type: Bug Package: Documentation problem PHP Version: 5.3.6 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-03-24 07:30:59] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=309629 Log: Fix doc bug #54363 (Namespaces: incorrect documentation example explanation). ------------------------------------------------------------------------ [2011-03-23 20:52:00] mary dot kulagina at gmail dot com Description: ------------ --- From manual page: http://www.php.net/language.namespaces.rules --- last example is incorrect \A\B::foo(); // calls method "foo" of class "B" from namespace "A\B" // if class "A\B" not found, it tries to autoload class "A\B" it should state: \A\B::foo(); // calls method "foo" of class "B" from namespace "A" // if class "A\B" not found, it tries to autoload class "A\B" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54363&edit=1

« previous php.doc.bugs (#6132) next »