| +----------------------------------------------------------------------+ */ /* DO NOT EDIT THIS FILE! This file is generated using tokenizer_data_gen.php */ #include "php.h" #include "zend.h" #include void tokenizer_register_constants(INIT_FUNC_ARGS) { CODE; $incontent = file_get_contents($infile); preg_match_all('(^ (?T_.*?)\b)m', $incontent, $matches); foreach ($matches['token_name'] as $tokenName) { if ($tokenName === 'T_NOELSE' || $tokenName === 'T_ERROR') { continue; } $result .= "\tREGISTER_LONG_CONSTANT(\"$tokenName\", $tokenName, CONST_CS | CONST_PERSISTENT);\n"; } $result .= "\tREGISTER_LONG_CONSTANT(\"T_DOUBLE_COLON\", T_PAAMAYIM_NEKUDOTAYIM, CONST_CS | CONST_PERSISTENT);\n"; $result .= <<