php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43223 SPL Interfaces in namespaces
Submitted: 2007-11-09 10:07 UTC Modified: 2007-11-09 17:06 UTC
From: felipensp at gmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3CVS-2007-11-09 (snap) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: felipensp at gmail dot com
New email:
PHP Version: OS:

 

 [2007-11-09 10:07 UTC] 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 ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-09 17:06 UTC] felipe@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Sep 07 17:00:01 2025 UTC