From: foobar Date: Thu, 10 Nov 2005 07:50:59 +0000 (+0000) Subject: MFH: - Fixed bug #35179 (tokenizer extension needs T_HALT_COMPILER) X-Git-Tag: php-5.1.0RC5~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=592e78ab873c223abe17d124b907831a60c11e50;p=php MFH: - Fixed bug #35179 (tokenizer extension needs T_HALT_COMPILER) --- diff --git a/NEWS b/NEWS index ddc9a3ee8c..95d5a3f254 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ PHP NEWS - Fixed bug in mysqli extension with unsigned int(11) being represented as signed integer in PHP instead of string in 32bit systems. (Andrey) - Fixed initializing and argument checking for posix_mknod(). (Derick) +- Fixed bug #35179 (tokenizer extension needs T_HALT_COMPILER). (Greg) - Fixed bug #35142 (SOAP Client/Server Complex Object Support). (Dmitry) - Fixed bug #35135 (PDOStatment without related PDO object may crash). (Ilia) - Fixed bug #35091 (SoapClient leaks memory). (Dmitry) diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index d3503c5be8..cd94b6df67 100644 --- a/ext/tokenizer/tokenizer.c +++ b/ext/tokenizer/tokenizer.c @@ -282,7 +282,8 @@ PHP_MINIT_FUNCTION(tokenizer) REGISTER_LONG_CONSTANT("T_THROW", T_THROW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("T_TRY", T_TRY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("T_CLONE", T_CLONE, CONST_CS | CONST_PERSISTENT); - + REGISTER_LONG_CONSTANT("T_HALT_COMPILER", T_HALT_COMPILER, CONST_CS | CONST_PERSISTENT); + return SUCCESS; } /* }}} */ @@ -495,6 +496,7 @@ get_token_type_name(int token_type) case T_THROW: return "T_THROW"; case T_TRY: return "T_TRY"; case T_CLONE: return "T_CLONE"; + case T_HALT_COMPILER: return "T_HALT_COMPILER"; } return "UNKNOWN"; }