summaryrefslogtreecommitdiff
path: root/Zend/zend_language_scanner.c
Commit message (Collapse)AuthorAgeFilesLines
* year++Xinchen Hui2018-01-021-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-07-211-196/+194
|\ | | | | | | | | | | | | | | * PHP-7.0: Fixed bug #74947 (Segfault in scanner on INF number) Conflicts: Zend/zend_language_scanner.c
| * Fixed bug #74947 (Segfault in scanner on INF number)Xinchen Hui2017-07-211-196/+194
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-03-231-3959/+4147
|\ \ | |/
| * Fix sequencing UBNikita Popov2017-03-231-421/+444
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
| * Fix line number of implicit return in pseudo-main scopeNikita Popov2016-10-121-3956/+4124
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Implement #72918: negative offset inside a quoted string leads to parse errorChristoph M. Becker2016-10-141-4094/+3929
| | | | | | | | | | We allow negative numeric offsets for the simple syntax inside double-quoted and heredoc strings.
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-10-141-3964/+4131
| | | | | | | | (cherry picked from commit 26964ccea0f52ed4d6beda3bcfd1508f6d3dad43)
* | Make sure TOKEN_PARSE mode is thread safeNikita Popov2016-07-231-350/+356
| | | | | | | | | | | | 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 :/
* | Fixed compilation warningsDmitry Stogov2016-06-211-3/+3
| |
* | Check in generated lexerSara Golemon2016-05-141-348/+354
| | | | | | | | | | This should have been included with my previous diff implementing octal overflow warning. Ooops.
* | Eliminated checks for (func->op_array.fn_flags & ZEND_ACC_GENERATOR) in fast ↵Dmitry Stogov2016-05-131-2739/+2746
| | | | | | | | | | | | | | path of DO_FCALL* handlers. This slightly improves calls to regular function and method calls in cost of a bit slower generator initialization. Separate call frame for generators, allocated on heap, now created by ZEND_GENERATOR_CREATE instruction.
* | Revert "Refactor zval cleanup into single function"Dmitry Stogov2016-05-061-186/+176
| | | | | | | | This reverts commit bac6fdb0c52c924e726c5a78de8858bf27b6586b.
* | Refactor zval cleanup into single functionBob Weinand2016-05-051-176/+186
| | | | | | | | Also use zval_ptr_dtor_nogc() everywhere in Zend in favor of zval_dtor()
* | Fix bug #71897Andrea Faulds2016-05-041-2583/+2577
| |
* | Merge branch 'PHP-7.0'Nikita Popov2016-03-061-216/+217
|\ \ | |/ | | | | | | Conflicts: Zend/zend_language_scanner.c
| * Fixed bug #71724Nikita Popov2016-03-061-216/+217
| |
* | Merge branch 'PHP-7.0'Xinchen Hui2016-01-021-1/+1
|\ \ | |/
| * bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
| |
* | Separate common part of compile_file() and compile_string() into zend_compile()Dmitry Stogov2015-11-121-417/+393
|/
* Don't return T_ERROR from token_get_all()Nikita Popov2015-07-091-199/+191
| | | | | | 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 #69430Nikita Popov2015-07-091-348/+353
| | | | | Don't throw from token_get_all() unless TOKEN_PARSE is used. Errors are reported as T_ERROR tokens.
* Switch code on thrown TypeError and ParseError to 0, update related testsAaron Piotrowski2015-07-071-5/+5
|
* Replace references to PHP_WIN32 and TSRM_WIN32 with ZEND_WIN32 in Zend/, ↵Kalle Sommer Nielsen2015-07-041-2/+2
| | | | this also fixes 1 instance of where fflush(stderr) was misplaced (zend_extensions.c)
* Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-5/+5
|
* Cleanup exception ce APIAaron Piotrowski2015-07-031-5/+5
| | | | | Removed recently added functions to get Error ce's and marked the old functions fetching default_exception_ce and error_exception_ce as deprecated.
* Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-06-141-537/+560
|\ | | | | | | | | | | | | # Conflicts: # Zend/zend_language_scanner.c # Zend/zend_language_scanner.l # ext/simplexml/tests/SimpleXMLElement_xpath.phpt
| * Rebuild scanner, add NEWS/UPGRADINGBob Weinand2015-05-251-537/+560
| |
* | Remodel exceptions based on Throwable interfaceAaron Piotrowski2015-05-161-5/+5
|/ | | | | | | | | | | Added Throwable interface that exceptions must implement in order to be thrown. BaseException was removed, EngineException renamed to Error, and TypeException and ParseException renamed to TypeError and ParseError. Exception and Error no longer extend a common base class, rather they both implement the Throwable interface.
* Add line_start/end info to main op_arrayBob Weinand2015-04-251-348/+352
|
* Move more stuff to file_contextNikita Popov2015-04-211-350/+348
| | | | | | | | Introduce helper macro FC(x) for CG(file_context).x. end_compilation() now handled by file_context_end(). While at it, dropped zval wrapper for ticcks.
* Fixed bug #69388Nikita Popov2015-04-201-354/+362
| | | | | | | | | | | | Renamed compiler_context to oparray_context. Introduced per-file file_context. Moved import tables into the file_context. context_stack no longer exists, instead keeping backups of contexts on C stack. Same for file contexts. TODO: Move more things out of CG into file_context. There should be a number of other things that we should not try to reuse in nested compilations.
* Merge branch 'coroutineDelegation' of https://github.com/bwoebi/php-srcBob Weinand2015-04-141-974/+1033
|\
| * Added yield from operatorBob Weinand2015-03-071-972/+1031
| |
* | Throw ParseException from lexerNikita Popov2015-04-021-358/+376
| | | | | | | | | | | | | | 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.
* | Use zend_error_noreturn() for fatal errorsDmitry Stogov2015-04-011-1/+1
| |
* | Optimize zend_string_realloc() add more specialized versions ↵Dmitry Stogov2015-03-201-1/+1
| | | | | | | | zend_string_extend() and zend_string_truncate()
* | Support ParseException for require etcNikita Popov2015-03-171-379/+371
| |
* | Use zend_string* instead of char* for opened_patch handling. Avoid ↵Dmitry Stogov2015-03-041-2718/+2712
| | | | | | | | reallocations and improve string reuse.
* | Blast off to space.Andrea Faulds2015-01-291-2949/+2964
|/
* Fixed compiler reenterabilityDmitry Stogov2015-01-221-344/+350
|
* Provide compiler hook for altering the AST pre-compilation.Sara Golemon2015-01-191-344/+350
|
* Fixed annoying incompatible pointer type warningXinchen Hui2015-01-181-2529/+2525
|
* Error on invalid octal (fixes PHPSadness #31)Andrea Faulds2015-01-171-456/+503
| | | | Further error checks
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-225/+225
|
* fix invalid free mentioned in bug 68665Anatol Belski2014-12-281-2545/+2543
| | | | thanks honey at internot dot info
* C89 compatAnatol Belski2014-12-191-2525/+2521
|