Doc #60170 [Opn->Csd]: Example contradicts explanation above
| From: | Laurent dot Lyaudet at gmail dot com | Date: | Sat, 29 Oct 2011 19:30:23 +0000 |
| Subject: | Doc #60170 [Opn->Csd]: Example contradicts explanation above | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7364@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60170&edit=1
ID: 60170
User updated by: Laurent dot Lyaudet at gmail dot com
Reported by: Laurent dot Lyaudet at gmail dot com
Summary: Example contradicts explanation above
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I forgot that import couldn't apply to functions and constants. The non-uniform behavior of
import is quite a "non-feature".
Previous Comments:
------------------------------------------------------------------------
[2011-10-29 18:35:15] Laurent dot Lyaudet at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/language.namespaces.rules
---
Unless I've misunderstood something, I think there is the following error in the manual:
In example 1, call to F(); is said to be resolved as \A\F() then \F() in case of failure. But it
contradicts rule 2 above that said that this unqualified name should have been translated using
import to \C\E().
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60170&edit=1