#43223 [Opn->Csd]: SPL Interfaces in namespaces
| From: | felipe@php.net | Date: | Fri, 09 Nov 2007 17:06:22 +0000 |
| Subject: | #43223 [Opn->Csd]: SPL Interfaces in namespaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119399@lists.php.net to get a copy of this message | ||
ID: 43223
Updated by: felipe@php.net
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2007-11-09 (snap)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-11-09 10:07:17] felipensp at gmail dot com
Description:
------------
SPL Interfaces doesn't are recognize in namespace.
Reproduce code:
---------------
<?php
namespace foobar;
class foo implements SplObserver { }
Expected result:
----------------
Fatal error: Class foo contains 1 abstract method and must therefore be
declared abstract or implement the remaining methods
(SplObserver::update) in
Actual result:
--------------
Fatal error: Interface 'foobar::SplObserver' not found in ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43223&edit=1