php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55243 Namespaces also affect interfaces
Submitted: 2011-07-19 15:32 UTC Modified: 2011-08-25 20:37 UTC
From: mhujer at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mhujer at gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-19 15:32 UTC] mhujer at gmail dot com
Description:
------------
In the documentation on 
http://php.net/manual/en/language.namespaces.definition.php there is:
Although any valid PHP code can be contained within a namespace, only 
three type of code are affected by namespaces: classes, functions and constants.

I suppose it should also include interface, so it will be:

Although any valid PHP code can be contained within a namespace, only four type of 
code are affected by namespaces: classes, interfaces, functions and constants.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-25 20:35 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=315517
Log: Fix Bug #55243: Namespaces also affect interfaces
 [2011-08-25 20:37 UTC] nikic@php.net
-Status: Open +Status: Closed -Type: Bug +Type: Documentation Problem -Assigned To: +Assigned To: nikic
 [2011-08-25 20:37 UTC] nikic@php.net
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.


 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=920be7b3ce2588d1ab62d8ac7c6abb501dbc97b8
Log: Fix Bug #55243: Namespaces also affect interfaces
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 01:00:01 2026 UTC