From: greg at chiaraquartet dot net
Operating system: linux
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Unknown/Other Function
Bug description: T_INTERFACE and T_IMPLEMENTS not defined in tokenizer extension
Description:
------------
these lines are missing from ext/tokenizer/tokenizer.c at line 280 (or
around there):
REGISTER_LONG_CONSTANT("T_INTERFACE", T_INTERFACE, CONST_CS |
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("T_IMPLEMENTS", T_IMPLEMENTS, CONST_CS |
CONST_PERSISTENT);
Reproduce code:
---------------
<?php
echo token_name(T_INTERFACE);
?>
Expected result:
----------------
T_INTERFACE
Actual result:
--------------
Warning: T_INTERFACE not found, assuming "T_INTERFACE" etc. etc....
--
Edit bug report at http://bugs.php.net/?id=24504&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24504&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24504&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24504&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24504&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24504&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24504&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24504&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24504&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24504&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24504&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24504&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24504&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24504&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24504&r=gnused