#43048 [Opn->Bgs]: Interface should be allowed as a valid class name
| From: | johannes@php.net | Date: | Sat, 20 Oct 2007 14:48:30 +0000 |
| Subject: | #43048 [Opn->Bgs]: Interface should be allowed as a valid class name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118756@lists.php.net to get a copy of this message | ||
ID: 43048
Updated by: johannes@php.net
Reported By: lars at strojny dot net
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Gentoo Linux
PHP Version: 5.3CVS-2007-10-19 (snap)
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Keywords can'T be used as identifier.
Previous Comments:
------------------------------------------------------------------------
[2007-10-20 13:29:08] lars at strojny dot net
Same goes for Abstract, btw. Because something like
MyCompany::Component::Abstract should be possible.
------------------------------------------------------------------------
[2007-10-19 22:54:17] lars at strojny dot net
Description:
------------
When an application, which uses Company_Component_Interface as a
current naming scheme, is ported to the new namespace support, it would
not be possible to use the following:
<?php
namespace Company::Component;
interface Interface
{
...
}
This is because interface (or Interface) is a reserved keyword. It
would be really helpful, if Interface would be an allowed class name.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43048&edit=1