From:             allen dot arbeau at gmail dot com
Operating system: Windows XP
PHP version:      5.2.0
PHP Bug Type:     Class/Object related
Bug description:  the Implements keyword

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 bug report at http://bugs.php.net/?id=39408&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39408&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39408&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39408&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39408&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39408&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39408&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39408&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39408&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39408&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39408&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39408&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39408&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39408&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39408&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39408&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39408&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39408&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39408&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39408&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39408&r=mysqlcfg

Reply via email to