#39408 [Opn->Bgs]: the Implements keyword
| From: | bjori@php.net | Date: | Tue, 07 Nov 2006 14:24:44 +0000 |
| Subject: | #39408 [Opn->Bgs]: the Implements keyword | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104511@lists.php.net to get a copy of this message | ||
ID: 39408
Updated by: bjori@php.net
Reported By: allen dot arbeau at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Windows XP
PHP Version: 5.2.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Make sure your webserver is running php5.
Regarding Dreamweaver highlighting, file a bug report to
them.
Previous Comments:
------------------------------------------------------------------------
[2006-11-06 22:57:11] allen dot arbeau at gmail dot com
Description:
------------
I am using PHP 5.2.0, Dreamweaver 8 and IE 7. I receive an error on the
webpage pointing to my TextBox class (line 5) when I attempt to use the
keyword "implements" in that class.
Reproduce code:
---------------
(The line numbers are for reference only and are not actually in the
class.)
------Element.php--------
1 <?php
2 interface Element
3 {
4 public function getUID(); //signature
5 }
6 ?>
-------------------------
------TextBox.php--------
1 <?php
2
3 require_once 'Element.php';
4
5 class TextBox implements Element
6 {
7 public function getUID()
8 { //implementation }
9 }
10 ?>
-------------------------
Expected result:
----------------
I expect the application to recognize the keyword "implements" as a
valid keyword. In the case of Dreamweaver it should color code the word
"interface" as a keyword but it does not which suggests it does not
recognize "implements" as a valid keyword such as "extends" or
"class".
Actual result:
--------------
I get the error:
"Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE
in subscribers_kiosk/baseclass/TextBox.php on line 5"
on the webpage when I try to include the "TextBox.php" page into any
other php page.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39408&edit=1