summaryrefslogtreecommitdiff
path: root/ext/tokenizer/tokenizer.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | basic macro replacements, all at onceAnatol Belski2014-08-191-4/+4
| |
* | Cleanup (1-st round)Dmitry Stogov2014-04-151-3/+3
| |
* | Port tokenizer extensionNikita Popov2014-04-101-24/+20
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Fix lexing of nested heredoc strings in token_get_all()Nikita Popov2012-03-311-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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()).
* - Year++Felipe Pena2012-01-011-1/+1
|
* Fixed bug #54084 (token_get_all with regards to __halt_compiler is not ↵Stanislav Malyshev2011-11-081-6/+26
| | | | binary safe)
* - Make usage of new PHP_FE_END macroFelipe Pena2011-07-251-1/+1
|
* Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).Ilia Alshanetsky2011-02-281-0/+4
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - token_get_all now returns false on error, not "", returns array on successJohannes Schlüter2010-05-301-2/+3
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* Fixed bug #47038 (Memory leak in include)Dmitry Stogov2009-03-251-4/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macroFelipe Pena2008-11-171-2/+0
|
* - Revert ZEND_BEGIN_ARG_INFO changeFelipe Pena2008-11-021-0/+2
|
* - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macroFelipe Pena2008-10-241-2/+0
|
* . Added support for using static HEREDOCs to initialize static variables and ↵Dmitry Stogov2008-07-261-1/+1
| | | | | | | | 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)
* - MFH: suppress signedness warningsMoriyoshi Koizumi2008-07-251-2/+2
|
* - Fixed foldingFelipe Pena2008-06-231-1/+1
|
* - Added arginfoFelipe Pena2008-06-231-2/+14
|
* Fixed memory leakDmitry Stogov2008-06-111-0/+4
|
* - Rewrite scanner to be based on re2c instead of flexMarcus Boerger2008-03-161-60/+2
| | | | | | | | | The full patch is available as: http://php.net/~helly/php-re2c-5.3-20080316.diff.txt This is against php-re2c repository version 98 An older patch against version 97 is available under: http://php.net/~helly/php-re2c-97-20080316.diff.txt
* Added NOWDOCDmitry Stogov2008-02-121-1/+1
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)Dmitry Stogov2007-09-271-1/+1
|
* - MFH: Use a script to generate tokenizer data from zend_language_parser.hJohannes Schlüter2007-07-311-244/+1
|
* Improved compilation of heredocs and interpolated strings. (Matt, Dmitry)Dmitry Stogov2007-05-181-5/+8
|
* - MFH: Added linenumbers to array returned by token_get_all()Johannes Schlüter2007-04-081-0/+4
|
* MFH: nuke skeleton leftoversAntony Dovgal2007-01-121-35/+0
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Removed pointless callbacks.Ilia Alshanetsky2006-06-201-32/+3
|
* Added automatic module globals managementDmitry Stogov2006-06-151-3/+2
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* MFH: nuke php3 legacyfoobar2005-12-061-1/+1
|
* tokenizer fixes for bug #35382Ilia Alshanetsky2005-11-271-0/+2
| | | | | Bug fixing news
* MFH: - Fixed bug #35179 (tokenizer extension needs T_HALT_COMPILER)foobar2005-11-101-1/+3
|
* Fixed bug #34782 (token_get_all() gives wrong result)Dmitry Stogov2005-10-211-0/+2
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* - Fixed bug #28930 (PHP sources pick wrong header files generated by bison)foobar2004-12-301-1/+1
|
* - Fixed bug #24550 (tokenizing with __METHOD__ crash) (Patch by Greg Beaver)Derick Rethans2004-03-081-0/+2
|
* - CLONE, not CLOSEDerick Rethans2004-03-021-1/+1
|
* - Added "clone" to the list of tokens. (Patch by Greg Beaver)Derick Rethans2004-03-021-0/+2
|
* - fix #27197 for Greg (cellog@php.net)Jan Lehnardt2004-02-101-0/+1
|
* HEAD is bundled with ZE2Andrey Hristov2004-01-171-14/+0
|
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* Fixed bug #26463 (Incorrect handling of semicolons after heredoc)Ilia Alshanetsky2003-11-291-4/+6
|
* Fixed a memory leak when tokenizing scripts with heredoc.Ilia Alshanetsky2003-11-291-0/+3
|
* Id tag addedAndrey Hristov2003-07-191-0/+2
|