Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't return T_ERROR from token_get_all() | Nikita Popov | 2015-07-09 | 1 | -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 #69430 | Nikita Popov | 2015-07-09 | 1 | -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 tests | Aaron Piotrowski | 2015-07-07 | 1 | -5/+5 |
| | |||||
* | Replace references to PHP_WIN32 and TSRM_WIN32 with ZEND_WIN32 in Zend/, ↵ | Kalle Sommer Nielsen | 2015-07-04 | 1 | -2/+2 |
| | | | | this also fixes 1 instance of where fflush(stderr) was misplaced (zend_extensions.c) | ||||
* | Switch position of ce in exception ce variable names | Aaron Piotrowski | 2015-07-03 | 1 | -5/+5 |
| | |||||
* | Cleanup exception ce API | Aaron Piotrowski | 2015-07-03 | 1 | -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-interface | Aaron Piotrowski | 2015-06-14 | 1 | -537/+560 |
|\ | | | | | | | | | | | | | # Conflicts: # Zend/zend_language_scanner.c # Zend/zend_language_scanner.l # ext/simplexml/tests/SimpleXMLElement_xpath.phpt | ||||
| * | Rebuild scanner, add NEWS/UPGRADING | Bob Weinand | 2015-05-25 | 1 | -537/+560 |
| | | |||||
* | | Remodel exceptions based on Throwable interface | Aaron Piotrowski | 2015-05-16 | 1 | -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_array | Bob Weinand | 2015-04-25 | 1 | -348/+352 |
| | |||||
* | Move more stuff to file_context | Nikita Popov | 2015-04-21 | 1 | -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 #69388 | Nikita Popov | 2015-04-20 | 1 | -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-src | Bob Weinand | 2015-04-14 | 1 | -974/+1033 |
|\ | |||||
| * | Added yield from operator | Bob Weinand | 2015-03-07 | 1 | -972/+1031 |
| | | |||||
* | | Throw ParseException from lexer | Nikita Popov | 2015-04-02 | 1 | -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 errors | Dmitry Stogov | 2015-04-01 | 1 | -1/+1 |
| | | |||||
* | | Optimize zend_string_realloc() add more specialized versions ↵ | Dmitry Stogov | 2015-03-20 | 1 | -1/+1 |
| | | | | | | | | zend_string_extend() and zend_string_truncate() | ||||
* | | Support ParseException for require etc | Nikita Popov | 2015-03-17 | 1 | -379/+371 |
| | | |||||
* | | Use zend_string* instead of char* for opened_patch handling. Avoid ↵ | Dmitry Stogov | 2015-03-04 | 1 | -2718/+2712 |
| | | | | | | | | reallocations and improve string reuse. | ||||
* | | Blast off to space. | Andrea Faulds | 2015-01-29 | 1 | -2949/+2964 |
|/ | |||||
* | Fixed compiler reenterability | Dmitry Stogov | 2015-01-22 | 1 | -344/+350 |
| | |||||
* | Provide compiler hook for altering the AST pre-compilation. | Sara Golemon | 2015-01-19 | 1 | -344/+350 |
| | |||||
* | Fixed annoying incompatible pointer type warning | Xinchen Hui | 2015-01-18 | 1 | -2529/+2525 |
| | |||||
* | Error on invalid octal (fixes PHPSadness #31) | Andrea Faulds | 2015-01-17 | 1 | -456/+503 |
| | | | | Further error checks | ||||
* | bump year | Xinchen Hui | 2015-01-15 | 1 | -1/+1 |
| | |||||
* | trailing whitespace removal | Stanislav Malyshev | 2015-01-10 | 1 | -225/+225 |
| | |||||
* | fix invalid free mentioned in bug 68665 | Anatol Belski | 2014-12-28 | 1 | -2545/+2543 |
| | | | | thanks honey at internot dot info | ||||
* | C89 compat | Anatol Belski | 2014-12-19 | 1 | -2525/+2521 |
| | |||||
* | Unicode Codepoint Escape Syntax | Andrea Faulds | 2014-12-19 | 1 | -2700/+2783 |
| | |||||
* | first shot remove TSRMLS_* things | Anatol Belski | 2014-12-13 | 1 | -120/+120 |
| | |||||
* | fix datatype mismatch warnings | Anatol Belski | 2014-10-29 | 1 | -349/+351 |
| | |||||
* | Remove <% and <script language="php"> tags | Nikita Popov | 2014-10-05 | 1 | -3728/+3327 |
| | | | | | | | | | | | | As per https://wiki.php.net/rfc/remove_alternative_php_tags. Removes: * <% opening tag * %> closing tag * <%= short opening tag * /<script\s+language\s*=\s*(php|"php"|'php')\s*>/i opening tag * /</script>/i closing tag * asp_tags ini directive | ||||
* | Initial coalesce operator implementation | Nikita Popov | 2014-09-16 | 1 | -3021/+3031 |
| | |||||
* | Fix yy_limit computation after encoding switch | Nikita Popov | 2014-09-11 | 1 | -1/+1 |
| | | | | | | | | | | The three assignments above this line are still broken - they assume that byte offsets in one encoding directly map to byte offsets in another encoding. I'm fixing the length here because it is the one causing out-of-bounds reads and is easy to fix. For the others we'd have to actually compute new offsets. | ||||
* | Remove self-contradictory zend multibyte assertion | Nikita Popov | 2014-09-11 | 1 | -2/+2 |
| | | | | | Code that explicitly exists to handle an incompatible internal encoding should not assert that the internal encoding is compatible. | ||||
* | Remove unnecessary branch/temp variable | Xinchen Hui | 2014-09-09 | 1 | -363/+359 |
| | |||||
* | Fix parser stack destruction with dummy ENCAPSED_AND_WHITESPACE | Nikita Popov | 2014-09-08 | 1 | -161/+163 |
| | | | | | T_ENCAPSED_AND_WHITESPACE is now specified to always hold a value, so give it a NULL value in the dummy cases. | ||||
* | Use efree_size() instead of efree() where posible | Dmitry Stogov | 2014-08-27 | 1 | -1/+1 |
| | |||||
* | Handle remaining magic constants in parser as well | Nikita Popov | 2014-08-26 | 1 | -175/+146 |
| | | | | | As far as I can see the !filename case cannot occur, so I dropped it. | ||||
* | eval() with parse error uses clean shutdown now | Nikita Popov | 2014-08-26 | 1 | -384/+370 |
| | |||||
* | Remove ZEND_ACC_INTERACTIVE and CG(interactive) | Nikita Popov | 2014-08-25 | 1 | -354/+350 |
| | | | | | | | | | As far as I can discern these are leftovers of the interactive shell implementation that was used before PHP 5.4. Now the readline ext makes use of normal eval calls for this. So, dropping these until there is evidence to the contrary, as they currently wouldn't work anyway. | ||||
* | Fix compiler warnings | Nikita Popov | 2014-08-25 | 1 | -1/+1 |
| | |||||
* | Merge branch 'ast'POST_AST_MERGE | Nikita Popov | 2014-08-25 | 1 | -389/+321 |
|\ | | | | | | | | | Conflicts: Zend/zend_compile.c | ||||
| * | Merge remote-tracking branch 'php-src/master' into ast | Nikita Popov | 2014-08-25 | 1 | -21/+21 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Zend/zend_compile.c Zend/zend_compile.h Zend/zend_globals.h Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner.l Zend/zend_types.h | ||||
| * | | zend_do_return -> zend_emit_final_return | Nikita Popov | 2014-07-26 | 1 | -355/+354 |
| | | | |||||
| * | | Make lexer return AST nodes | Nikita Popov | 2014-07-26 | 1 | -359/+350 |
| | | | |||||
| * | | Remove DUMMY_STRINGL | Nikita Popov | 2014-07-26 | 1 | -316/+306 |
| | | | | | | | | | | | | What is that for? | ||||
| * | | Fix leaks | Nikita Popov | 2014-07-26 | 1 | -2/+2 |
| | | | | | | | | | | | | Must find a good way to handle constant expressions... | ||||
| * | | Use arena allocator (currently leaky!) | Nikita Popov | 2014-07-26 | 1 | -350/+354 |
| | | | |||||
| * | | Expose ast via CG(ast) | Nikita Popov | 2014-07-24 | 1 | -352/+358 |
| | | |