mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
- Fixed bug #24504: T_INTERFACE and T_IMPLEMENTS not defined in tokenizer
extension
This commit is contained in:
parent
73d98824d7
commit
a952e28c73
@ -250,6 +250,10 @@ PHP_MINIT_FUNCTION(tokenizer)
|
||||
REGISTER_LONG_CONSTANT("T_EMPTY", T_EMPTY, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_CLASS", T_CLASS, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_EXTENDS", T_EXTENDS, CONST_CS | CONST_PERSISTENT);
|
||||
#ifdef ZEND_ENGINE_2
|
||||
REGISTER_LONG_CONSTANT("T_INTERFACE", T_INTERFACE, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_IMPLEMENTS", T_IMPLEMENTS, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
REGISTER_LONG_CONSTANT("T_OBJECT_OPERATOR", T_OBJECT_OPERATOR, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_DOUBLE_ARROW", T_DOUBLE_ARROW, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_LIST", T_LIST, CONST_CS | CONST_PERSISTENT);
|
||||
@ -459,6 +463,10 @@ get_token_type_name(int token_type)
|
||||
case T_EMPTY: return "T_EMPTY";
|
||||
case T_CLASS: return "T_CLASS";
|
||||
case T_EXTENDS: return "T_EXTENDS";
|
||||
#ifdef ZEND_ENGINE_2
|
||||
case T_INTERFACE: return "T_INTERFACE";
|
||||
case T_IMPLEMENTS: return "T_IMPLEMENTS";
|
||||
#endif
|
||||
case T_OBJECT_OPERATOR: return "T_OBJECT_OPERATOR";
|
||||
case T_DOUBLE_ARROW: return "T_DOUBLE_ARROW";
|
||||
case T_LIST: return "T_LIST";
|
||||
|
Loading…
Reference in New Issue
Block a user