|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-07 14:24 UTC] bjori@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 16:00:01 2025 UTC |
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.