Re: possible namespace bug?
| From: | David Harkness | Date: | Fri, 21 Jan 2011 01:27:00 +0000 |
| Subject: | Re: possible namespace bug? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310937@lists.php.net to get a copy of this message | ||
On Thu, Jan 20, 2011 at 4:26 PM, Tommy Pham <tommyhp2@gmail.com> wrote:
> Anyway, I found the problem: \N in
>
> use org\puremvc\php\patterns\observer\Notifier;
>
AFAIK \n is only processed inside double-quoted strings and here-docs. The
\N has no special meaning beyond a namespace separator and a capital N.
My guess is the same as Adam's. Since I don't see how you declare
INotification, I think it's getting confused when using namespaces. In the
top part, PHP assumes the class must be in the org\puremvc\php\interfaces
namespace whereas in SimpleCommand's declaration, INotification is assumed
to be in the org\puremvc\php\patterns\command namespace. This causes their
declarations to be mismatched.
David