summaryrefslogtreecommitdiff
path: root/Zend/zend_language_scanner.h
Commit message (Collapse)AuthorAgeFilesLines
* Future-proof email addressesZeev Suraski2018-11-011-2/+2
|
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Implement flexible heredoc/nowdoc syntaxThomas Punt2018-04-131-0/+2
| | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes * The ending label no longer has to be followed by a semicolon or newline. Any non-label character is fine. * The ending label may be indented. The indentation will be stripped from all lines in the heredoc/nowdoc string. Lexing of heredoc strings performs a scan-ahead to determine the indentation of the ending label, so that the correct amount of indentation can be removed when calculting the semantic values for use by the parser. This makes the implementation quite a bit more complicated than we would like :/
* year++Xinchen Hui2018-01-021-1/+1
|
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* further normalizations, uint vs uint32_tAnatol Belski2016-11-261-1/+1
| | | | | | fix merge mistake yet one more replacement run
* Make sure TOKEN_PARSE mode is thread safeNikita Popov2016-07-231-1/+2
| | | | | | 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 :/
* Drop dup declare with inconsistent linkageNikita Popov2016-05-021-1/+0
| | | | This is already declared in zend_stream.h as ZEND_API.
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* ext tokenizer port + cleanup unused lexer statesMárcio Almada2015-04-301-0/+4
| | | | | | | | | | | 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.
* Fixed compiler reenterabilityDmitry Stogov2015-01-221-0/+3
|
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-5/+5
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-101-1/+1
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2013-08-041-1/+1
|\ | | | | | | | | | | | | | | * PHP-5.4: non living code related typo fixes Conflicts: Zend/zend_compile.c
| * non living code related typo fixesVeres Lajos2013-08-041-1/+1
| |
| * Happy New YearXinchen Hui2013-01-011-1/+1
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * Fixed ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-1/+1
| |
* | Happy New YearXinchen Hui2013-01-011-1/+1
| |
* | Fix lexing of nested heredoc strings in token_get_all()Nikita Popov2012-03-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-1/+1
|/
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Avoid allocating extra buffers. This makes parsing with zend.multibyte ↵Moriyoshi Koizumi2010-12-201-2/+0
| | | | enabled as fast as with it disabled.
* * Refactor zend_multibyte facility.Moriyoshi Koizumi2010-12-191-2/+5
| | | | | Now mbstring.script_encoding is superseded by zend.script_encoding.
* Added multibyte suppport by default. Previosly php had to be compiled with ↵Dmitry Stogov2010-11-241-2/+0
| | | | --enable-zend-multibyte. Now it can be enabled or disabled throug zend.multibyte directive in php.ini
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* - Revived zend multibyteMoriyoshi Koizumi2008-07-241-4/+4
|
* implemented again zend-multibyte for PHP 5.3Rui Hirokawa2008-06-291-0/+16
|
* - Rewrite scanner to be based on re2c instead of flexMarcus Boerger2008-03-161-19/+9
| | | | | | | | | 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
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* - Update copyright notices to 2006Andi Gutmans2006-01-041-1/+1
|
* Bump up the yearfoobar2005-08-031-1/+1
|
* Nuke compile warning by using the LANG_SCNG macro insteadfoobar2004-01-171-1/+0
|
* TSRMLS fixWez Furlong2004-01-111-1/+1
|
* - This should fix the problem of conditional function decleration on theAndi Gutmans2004-01-111-0/+2
| | | | | | - same line of code not to work. You should re-evaluate your coding style - if you really code this way :)
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-1/+1
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* - added script encoding support to Zend Engine 2.Masaki Fujimoto2003-08-111-0/+16
| | | | | | | this enables ZE2 to gracefully parse scripts written in UTF-8 (with BOM), UTF-16, UTF-32, Shift_JIS, ISO-2022-JP etc... (when configured with '--enable-zend-multibyte' and '--enable-mbstring')
* updating license information in the headers.James Cox2003-06-101-1/+1
|
* Implement simple stream support in the ZE scanners.Wez Furlong2003-02-181-1/+1
|
* - Added some missing CVS $Id$ tags, headers and footers.foobar2003-02-011-0/+9
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Happy New Year.Sebastian Bergmann2002-01-061-1/+1
|
* MFZE1Zeev Suraski2001-12-181-0/+3
|