php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39408 the Implements keyword
Submitted: 2006-11-06 22:57 UTC Modified: 2006-11-07 14:24 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: allen dot arbeau at gmail dot com Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.2.0 OS: Windows XP
Private report: No CVE-ID: None
 [2006-11-06 22:57 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-07 14:24 UTC] bjori@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 00:01:31 2024 UTC