History log of /PHP-7.4/ext/tokenizer/tokenizer.c (Results 51 – 75 of 122)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: php-5.3.20, php-5.4.10, php-5.5.0alpha2, php-5.3.20RC1, php-5.4.10RC1, php-5.3.19, php-5.4.9, php-5.5.0alpha1, php-5.3.19RC1, php-5.4.9RC1, php-5.3.18, php-5.4.8, php-5.3.18RC1, php-5.4.8RC1, php-5.3.17, php-5.4.7, php-5.4.7RC1, php-5.3.16, php-5.4.6, php-5.4.6RC1, php-5.4.5, php-5.3.15, php-5.3.15RC1, php-5.4.5RC1, php-5.3.14, php-5.4.4, php-5.3.14RC2, php-5.4.4RC2, php-5.3.14RC1, php-5.4.4RC1, php-5.3.13, php-5.4.3, php-5.4.2, php-5.3.12, php-5.3.11, php-5.4.1, php-5.3.11RC2, php-5.4.1RC2
# 4cf90e06 30-Mar-2012 Nikita Popov

Fix lexing of nested heredoc strings in token_get_all()

This fixes bug #60097.

Before two global variables CG(heredoc) and CG(heredoc_len) were used to
track the current heredoc

Fix lexing of nested heredoc strings in token_get_all()

This fixes bug #60097.

Before two global variables CG(heredoc) and CG(heredoc_len) were used to
track the current heredoc label. In order to support nested heredoc
strings the *previous* heredoc label was assigned as the token value of
T_START_HEREDOC and the language_parser.y assigned that to CG(heredoc).

This created a dependency of the lexer on the parser. Thus the
token_get_all() function, which accesses the lexer directly without
also running the parser, was not able to tokenize nested heredoc strings
(and leaked memory). Same applies for the source-code highlighting
functions.

The new approach is to maintain a heredoc_label_stack in the lexer, which
contains all active heredoc labels.

As it is no longer required, T_START_HEREDOC and T_END_HEREDOC now don't
carry a token value anymore.

In order to make the work with zend_ptr_stack in this context more
convenient I added a new function zend_ptr_stack_top(), which retrieves the
top element of the stack (similar to zend_stack_top()).

show more ...


Revision tags: php-5.3.11RC1, php-5.4.1RC1, PHP-5.4.1-RC1, php-5.4.0, php-5.4.0RC8, php-5.3.10, php-5.4.0RC7, php-5.4.0RC6, php-5.3.9, php-5.4.0RC5
# e4ca0ed0 01-Jan-2012 Felipe Pena

- Year++


# 8775a375 01-Jan-2012 Felipe Pena

- Year++


# 4e198252 01-Jan-2012 Felipe Pena

- Year++


Revision tags: php-5.3.9RC4, php-5.4.0RC4, php-5.3.9RC3, php-5.4.0RC3, php-5.3.9RC2, php-5.4.0RC2, php-5.4.0RC1
# 5063a771 08-Nov-2011 Stanislav Malyshev

Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)


# 0d591e59 08-Nov-2011 Stanislav Malyshev

Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)


Revision tags: php-5.3.9RC1, php-5.4.0beta2, php-5.4.0beta1, yaf-2.1.0, php-5.3.8, php-5.3.7, php-5.3.7RC5, php-5.4.0alpha3, php-5.3.7RC4
# 23e43859 25-Jul-2011 Felipe Pena

- Make usage of new PHP_FE_END macro


# 4b30846b 25-Jul-2011 Felipe Pena

- Make usage of new PHP_FE_END macro


# da376383 25-Jul-2011 Felipe Pena

- Make usage of new PHP_FE_END macro


Revision tags: php-5.3.7RC3, php-5.4.0alpha2, php-5.3.7RC2, php-5.4.0alpha1, php-5.3.7RC1, php-5.3.6, php-5.3.6RC3, php-5.3.6RC2
# 5d83ad8c 28-Feb-2011 Ilia Alshanetsky

Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).


# 1d984a7f 28-Feb-2011 Ilia Alshanetsky

Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).


Revision tags: php-5.3.6RC1, php-5.2.17, php-5.3.5
# 927bf09c 01-Jan-2011 Felipe Pena

- Year++


# 0203cc3d 01-Jan-2011 Felipe Pena

- Year++


Revision tags: php-5.2.16, php-5.2.15, php-5.3.4, php-5.2.15RC2, php-5.3.4RC2, php-5.3.4RC1, php-5.2.15RC1, PHP_5_2_15RC1, oci8-1.4.3, php-5.2.14, php-5.3.3, php-5.3.3RC3, php-5.2.14RC3, php-5.3.3RC2, php-5.2.14RC2, php-5.3.3RC1, php-5.2.14RC1
# 27299b7e 30-May-2010 Johannes Schlüter

- token_get_all now returns false on error, not "", returns array on success


Revision tags: php-5.3.2, php-5.2.13, php-5.3.2RC3, php-5.3.2RC2, php-5.2.13RC2, php-5.2.13RC1
# 9ba1e816 03-Jan-2010 Sebastian Bergmann

sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php


Revision tags: php-5.3.2RC1, php-5.2.12, php-5.2.12RC4, php-5.2.12RC3, php-5.2.12RC2, php-5.3.1, php-5.3.1RC4, php-5.2.12RC1, php-5.3.1RC3, php-5.3.1RC2, oci8-1.4.0, php-5.2.11, php-5.2.11RC3, php-5.3.1RC1, php-5.2.11RC2, php-5.2.11RC1, php-5.3.0, php-5.3.0RC4, php-5.2.10, php-5.2.10RC2, php-5.3.0RC3, php-5.2.10RC1, php-5.3.0RC2
# bcd9099b 25-Mar-2009 Dmitry Stogov

Fixed bug #47038 (Memory leak in include)


Revision tags: php-5.3.0RC1, RELEASE_1_3_5, php-5.2.9, php-5.2.9RC3, php-5.2.9RC2, php-5.2.9RC1, php-5.3.0beta1
# 08659c2d 31-Dec-2008 Sebastian Bergmann

MFH: Bump copyright year, 3 of 3.


Revision tags: NEWS, php-5.2.8, BEFORE_HEAD_NS_CHANGES_MERGE, php-5.3.0alpha3, php-5.3.0alpha2, php-5.2.7, php-5.2.7RC5, php-5.2.7RC4
# fc2fb50d 17-Nov-2008 Felipe Pena

- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro


Revision tags: BEFORE_HEAD_NS_CHANGE, BEFORE_NS_RULES_CHANGE, php-5.2.7RC3
# 7a37fa2d 02-Nov-2008 Felipe Pena

- Revert ZEND_BEGIN_ARG_INFO change


# df100055 24-Oct-2008 Felipe Pena

- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro


Revision tags: php-5.2.7RC2, php-5.2.7RC1, php-4.4.9, php-5.3.0alpha1
# 478acfd8 26-Jul-2008 Dmitry Stogov

. Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted strin

. Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt)
. Optimized interpolated strings to use one less opcode. (Matt)

show more ...


# bb35ab45 25-Jul-2008 Moriyoshi Koizumi

- MFH: suppress signedness warnings


Revision tags: php-4.4.9RC1
# f2d0da3c 23-Jun-2008 Felipe Pena

- Fixed folding


# ca016660 23-Jun-2008 Felipe Pena

- Added arginfo


Revision tags: BEFORE_NEW_PARAMETER_PARSE
# 8d260b6b 11-Jun-2008 Dmitry Stogov

Fixed memory leak


12345