mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
- Bug #46957 (The tokenizer returns deprecated values)
This commit is contained in:
parent
b21891361f
commit
cfe152206c
@ -151,6 +151,7 @@ void tokenizer_register_constants(INIT_FUNC_ARGS) {
|
||||
REGISTER_LONG_CONSTANT("T_NAMESPACE", T_NAMESPACE, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_NS_C", T_NS_C, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_DIR", T_DIR, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_NS_SEPARATOR", T_NS_SEPARATOR, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("T_DOUBLE_COLON", T_PAAMAYIM_NEKUDOTAYIM, CONST_CS | CONST_PERSISTENT);
|
||||
}
|
||||
|
||||
@ -280,6 +281,7 @@ char *get_token_type_name(int token_type)
|
||||
case T_NAMESPACE: return "T_NAMESPACE";
|
||||
case T_NS_C: return "T_NS_C";
|
||||
case T_DIR: return "T_DIR";
|
||||
case T_NS_SEPARATOR: return "T_NS_SEPARATOR";
|
||||
|
||||
}
|
||||
return "UNKNOWN";
|
||||
|
Loading…
Reference in New Issue
Block a user