Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make sure TOKEN_PARSE mode is thread safe | Nikita Popov | 2016-07-23 | 1 | -8/+10 |
| | | | | | | Introduce an on_event_context passed to the on_event hook. Use this context to pass along the token array. Previously this was stored in a non-tls global :/ | ||||
* | Merge branch 'PHP-5.6' into PHP-7.0 | Lior Kaplan | 2016-01-01 | 1 | -1/+1 |
|\ | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016) | ||||
| * | Happy new year (Update copyright to 2016) | Lior Kaplan | 2016-01-01 | 1 | -1/+1 |
| | | |||||
| * | bump year | Xinchen Hui | 2015-01-15 | 1 | -1/+1 |
| | | |||||
* | | Don't return T_ERROR from token_get_all() | Nikita Popov | 2015-07-09 | 1 | -3/+3 |
| | | | | | | | | | | | | This turned out to be rather inconvenient after all. Instead just return the same output we did on PHP 5. If people want to have an error, use TOKEN_PARSE. | ||||
* | | Fix bug #69430 | Nikita Popov | 2015-07-09 | 1 | -20/+9 |
| | | | | | | | | | | Don't throw from token_get_all() unless TOKEN_PARSE is used. Errors are reported as T_ERROR tokens. | ||||
* | | Update token_get_all() arginfo | Nikita Popov | 2015-07-09 | 1 | -1/+2 |
| | | |||||
* | | Avoid zval duplication in ZVAL_ZVAL() macro (it was necessary only in few ↵ | Dmitry Stogov | 2015-06-12 | 1 | -2/+3 |
| | | | | | | | | | | | | places). Switch from ZVAL_ZVAL() to simpler macros where possible (it makes sense to review remaining places) | ||||
* | | ext tokenizer port + cleanup unused lexer states | Márcio Almada | 2015-04-30 | 1 | -17/+115 |
| | | | | | | | | | | | | | | | | | | | | | | we basically added a mechanism to store the token stream during parsing and exposed the entire parser stack on the tokenizer extension through an opt in flag: token_get_all($src, TOKEN_PARSE). this change allows easy future language enhancements regarding context aware parsing & scanning without further maintance on the tokenizer extension while solves known inconsistencies "parseless" tokenizer extension has when it handles `__halt_compiler()` presence. | ||||
* | | fix indentation + remove c++ comments | Márcio Almada | 2015-04-30 | 1 | -5/+5 |
| | | |||||
* | | Throw ParseException from lexer | Nikita Popov | 2015-04-02 | 1 | -0/+2 |
| | | | | | | | | | | | | | | Primarily to avoid getting fatal errors from token_get_all(). Implemented using a magic E_ERROR token, which the lexer emits to force a parser failure. | ||||
* | | cleanup mod version macros and mod defs, round x | Anatol Belski | 2015-03-23 | 1 | -5/+1 |
| | | |||||
* | | bump year | Xinchen Hui | 2015-01-15 | 1 | -1/+1 |
| | | |||||
* | | trailing whitespace removal | Stanislav Malyshev | 2015-01-10 | 1 | -1/+1 |
| | | |||||
* | | first shot remove TSRMLS_* things | Anatol Belski | 2014-12-13 | 1 | -9/+9 |
| | | |||||
* | | s/PHP 5/PHP 7/ | Johannes Schlüter | 2014-09-19 | 1 | -1/+1 |
| | | |||||
* | | Avoid double IS_INTERNED() check | Dmitry Stogov | 2014-09-19 | 1 | -1/+1 |
| | | |||||
* | | master renames phase 1 | Anatol Belski | 2014-08-25 | 1 | -7/+7 |
| | | |||||
* | | fixes to tokenizer | Anatol Belski | 2014-08-19 | 1 | -2/+2 |
| | | |||||
* | | basic macro replacements, all at once | Anatol Belski | 2014-08-19 | 1 | -4/+4 |
| | | |||||
* | | Cleanup (1-st round) | Dmitry Stogov | 2014-04-15 | 1 | -3/+3 |
| | | |||||
* | | Port tokenizer extension | Nikita Popov | 2014-04-10 | 1 | -24/+20 |
|/ | |||||
* | Bump year | Xinchen Hui | 2014-01-03 | 1 | -1/+1 |
| | |||||
* | Happy New Year | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | Fix lexing of nested heredoc strings in token_get_all() | Nikita Popov | 2012-03-31 | 1 | -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 Pena | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | Fixed bug #54084 (token_get_all with regards to __halt_compiler is not ↵ | Stanislav Malyshev | 2011-11-08 | 1 | -6/+26 |
| | | | | binary safe) | ||||
* | - Make usage of new PHP_FE_END macro | Felipe Pena | 2011-07-25 | 1 | -1/+1 |
| | |||||
* | Fixed bug #54089 (token_get_all() does not stop after __halt_compiler). | Ilia Alshanetsky | 2011-02-28 | 1 | -0/+4 |
| | |||||
* | - Year++ | Felipe Pena | 2011-01-01 | 1 | -1/+1 |
| | |||||
* | - token_get_all now returns false on error, not "", returns array on success | Johannes Schlüter | 2010-05-30 | 1 | -2/+3 |
| | |||||
* | sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php | Sebastian Bergmann | 2010-01-03 | 1 | -1/+1 |
| | |||||
* | Fixed bug #47038 (Memory leak in include) | Dmitry Stogov | 2009-03-25 | 1 | -4/+1 |
| | |||||
* | MFH: Bump copyright year, 3 of 3. | Sebastian Bergmann | 2008-12-31 | 1 | -1/+1 |
| | |||||
* | - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro | Felipe Pena | 2008-11-17 | 1 | -2/+0 |
| | |||||
* | - Revert ZEND_BEGIN_ARG_INFO change | Felipe Pena | 2008-11-02 | 1 | -0/+2 |
| | |||||
* | - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro | Felipe Pena | 2008-10-24 | 1 | -2/+0 |
| | |||||
* | . Added support for using static HEREDOCs to initialize static variables and ↵ | Dmitry Stogov | 2008-07-26 | 1 | -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 warnings | Moriyoshi Koizumi | 2008-07-25 | 1 | -2/+2 |
| | |||||
* | - Fixed folding | Felipe Pena | 2008-06-23 | 1 | -1/+1 |
| | |||||
* | - Added arginfo | Felipe Pena | 2008-06-23 | 1 | -2/+14 |
| | |||||
* | Fixed memory leak | Dmitry Stogov | 2008-06-11 | 1 | -0/+4 |
| | |||||
* | - Rewrite scanner to be based on re2c instead of flex | Marcus Boerger | 2008-03-16 | 1 | -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 NOWDOC | Dmitry Stogov | 2008-02-12 | 1 | -1/+1 |
| | |||||
* | MFH: Bump copyright year, 2 of 2. | Sebastian Bergmann | 2007-12-31 | 1 | -1/+1 |
| | |||||
* | Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) | Dmitry Stogov | 2007-09-27 | 1 | -1/+1 |
| | |||||
* | - MFH: Use a script to generate tokenizer data from zend_language_parser.h | Johannes Schlüter | 2007-07-31 | 1 | -244/+1 |
| | |||||
* | Improved compilation of heredocs and interpolated strings. (Matt, Dmitry) | Dmitry Stogov | 2007-05-18 | 1 | -5/+8 |
| | |||||
* | - MFH: Added linenumbers to array returned by token_get_all() | Johannes Schlüter | 2007-04-08 | 1 | -0/+4 |
| | |||||
* | MFH: nuke skeleton leftovers | Antony Dovgal | 2007-01-12 | 1 | -35/+0 |
| |