]> granicus.if.org Git - php/commitdiff
tokenizer fixes for bug #35382
authorIlia Alshanetsky <iliaa@php.net>
Sun, 27 Nov 2005 06:41:32 +0000 (06:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 27 Nov 2005 06:41:32 +0000 (06:41 +0000)
Bug fixing news

NEWS
ext/tokenizer/tokenizer.c

diff --git a/NEWS b/NEWS
index aa37dc76f5f6cf88abe1199b3c973debb955250a..21697b1f55be9033a8ef17483c2d749dfaccbe51 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,16 +1,18 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2006, PHP 5.1.1
-- Changed reflection constants to class constants. (Johannes)
+- Make reflection constants be both PHP and class constants. (Johannes)
 - Added an additional field $frame['object'] to the result array of
   debug_backtrace() that contains a reference to the respective object when the
   frame was called from an object. (Sebastian)
 - Fixed bug #35413 (Removed -dev flag from Zend Engine version). (Ilia)
+- Fixed bug #35411 (Regression with \{$ handling). (Ilia)
 - Fixed bug #35406 (eval hangs when evall'ed code ends with comment w/o 
   newline). (Marcus)
 - Fixed bug #35402 (New date class causes crash in get_object_vars()). (Tony)
 - Fixed bug #35391 (pdo_mysql::exec does not return number of affected rows). 
   (Tony)
+- Fixed bug #35382 (Comment in end of file produces fatal error). (Ilia)
 - Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash).
   (Dmitry)
 - Fixed bug #35358 (Incorrect error messages for PDO class constants). (Ilia)
index cd94b6df67f263469583176491cfb40fbf0f7c60..ce79eedab706ea402e9554b10d686e641394df16 100644 (file)
@@ -344,6 +344,8 @@ static void tokenize(zval *return_value TSRMLS_DC)
        while ((token_type = lex_scan(&token TSRMLS_CC))) {
                destroy = 1;
                switch (token_type) {
+                       case EOF:
+                               zendleng--; /* don't count EOF */
                        case T_OPEN_TAG:
                        case T_OPEN_TAG_WITH_ECHO:
                        case T_WHITESPACE: