summaryrefslogtreecommitdiff
path: root/ext/tokenizer
Commit message (Collapse)AuthorAgeFilesLines
* Happy New YearXinchen Hui2013-01-014-4/+4
|
* Fix test failed due to new Token T_YIELDXinchen Hui2012-09-021-10/+10
|
* Merge remote-tracking branch 'php-src/master' into addGeneratorsSupportNikita Popov2012-08-203-5/+125
|\ | | | | | | | | | | | | | | | | Merging master to fix Windows build Conflicts: Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_vm_def.h
| * add finallyStanislav Malyshev2012-08-191-1/+3
| |
| * Merge branch 'pull-request/31'Stanislav Malyshev2012-08-192-4/+122
| |\ | | | | | | | | | | | | * pull-request/31: Fix lexing of nested heredoc strings in token_get_all()
| | * Fix lexing of nested heredoc strings in token_get_all()Nikita Popov2012-03-312-4/+122
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()).
* | Add T_YIELD in tokenizer_data.cNikita Popov2012-07-228-20/+22
|/ | | | | Also had to fix up some tokenizer tests that were affected by the token number changes.
* - Year++Felipe Pena2012-01-014-5/+5
|
* Fixed bug #54084 (token_get_all with regards to __halt_compiler is not ↵Stanislav Malyshev2011-11-083-20/+331
| | | | binary safe)
* - Drop T_SCALAR_CASTFelipe Pena2011-08-161-2/+2
|
* Callable typehint following the rules of is_callable($arg, false);Hannes Magnusson2011-08-161-0/+4
|
* Added __TRAIT__ magic constant [TRAITS] [DOC]Stefan Marr2011-07-311-35/+76
| | | | | | | # __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits. # Since traits are not types, there are not many valid use cases, and trying # to use __TRAIT__ to make traits more like classes is discouraged.
* Added: SKIP when tokenizer extension is not availableStefan Marr2011-07-3121-0/+42
|
* - Make usage of new PHP_FE_END macroFelipe Pena2011-07-251-1/+1
|
* and clean the tokenizer tooStanislav Malyshev2011-06-031-4/+0
|
* forgot tokenizer...Stanislav Malyshev2011-05-151-16/+0
|
* Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).Ilia Alshanetsky2011-02-283-47/+54
|
* - Year++Felipe Pena2011-01-014-4/+4
|
* Set svn propertiesJohannes Schlüter2010-11-221-1/+1
|
* - Update tokenizer dataJohannes Schlüter2010-11-222-1/+25
|
* - token_get_all now returns false on error, not "", returns array on successJohannes Schlüter2010-05-301-2/+3
|
* Fixed testsIlia Alshanetsky2010-05-2419-1093/+1093
|
* Fixed testsIlia Alshanetsky2010-05-2018-602/+602
|
* revert change #298288: Remove old dsp/dsw/makefile filesRob Richards2010-04-281-0/+108
|
* - Fixed testsFelipe Pena2010-04-2618-608/+608
|
* Remove old dsp/dsw/makefile files, these arent used by the build system ↵Kalle Sommer Nielsen2010-04-211-108/+0
| | | | anymore and are barely updated nor available for all extensions
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-033-3/+3
|
* Fixed bug #47038 (Memory leak in include)Dmitry Stogov2009-03-251-4/+1
|
* MFH: fix tokenizer makefile dependencies on parser/scanner files when built ↵Brian Shire2009-03-021-1/+2
| | | | dynamically. (See bug #38762)
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-313-3/+3
|
* - Bug #46957 (The tokenizer returns deprecated values)Felipe Pena2008-12-271-0/+2
|
* - 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-262-5/+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
|
* Fix WS.Felipe Pena2008-03-301-248/+252
| | | | | # My editor accidentally changed tab to space, sorry.
* - Added T_GOTOFelipe Pena2008-03-3019-866/+868
| | | | | - Fixed tests
* Adding tokenizer testSteve Seear2008-03-191-0/+88
|
* - Rewrite scanner to be based on re2c instead of flexMarcus Boerger2008-03-163-73/+6
| | | | | | | | | 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
|
* HNYStanislav Malyshev2008-02-122-3/+3
|
* add T_DIRStanislav Malyshev2008-02-121-1/+3
|
* remove unused PHP_EXTNAME_API macros.Nuno Lopes2008-01-031-6/+0
| | | | | #in preparation for the gcc 4 visibility patch
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-313-3/+3
|
* Fix testHannes Magnusson2007-12-161-0/+2
|
* New testcases for token_get_all() functionRaghubansh Kumar2007-12-1420-0/+11305
|