File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -834,9 +834,15 @@ PHP_MINIT_FUNCTION(ast) {
834
834
ast_register_flag_constant ("EXEC_REQUIRE" , ZEND_REQUIRE );
835
835
ast_register_flag_constant ("EXEC_REQUIRE_ONCE" , ZEND_REQUIRE_ONCE );
836
836
837
+ #if PHP_VERSION_ID >= 70200
838
+ ast_register_flag_constant ("USE_NORMAL" , ZEND_SYMBOL_CLASS );
839
+ ast_register_flag_constant ("USE_FUNCTION" , ZEND_SYMBOL_FUNCTION );
840
+ ast_register_flag_constant ("USE_CONST" , ZEND_SYMBOL_CONST );
841
+ #else
837
842
ast_register_flag_constant ("USE_NORMAL" , T_CLASS );
838
843
ast_register_flag_constant ("USE_FUNCTION" , T_FUNCTION );
839
844
ast_register_flag_constant ("USE_CONST" , T_CONST );
845
+ #endif
840
846
841
847
ast_register_flag_constant ("MAGIC_LINE" , T_LINE );
842
848
ast_register_flag_constant ("MAGIC_FILE" , T_FILE );
You can’t perform that action at this time.
0 commit comments