summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
Commit message (Collapse)AuthorAgeFilesLines
* Trim trailing whitespace in source code filesPeter Kokot2018-10-131-11/+11
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2017-12-011-1/+1
|\ | | | | | | | | * PHP-7.0: Set trailing zero
| * Set trailing zeroDmitry Stogov2017-12-011-1/+1
| |
* | Fixed bug #74589 __DIR__ wrong for unicode characterAnatol Belski2017-05-151-0/+4
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-081-2/+5
|\ \ | |/ | | | | | | * PHP-7.0: Fixed another potential dangling pointer
| * Fixed another potential dangling pointerXinchen Hui2017-05-081-2/+5
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-081-2/+5
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #74546 (SIGILL in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER())
| * Fixed bug #74546 (SIGILL in ↵Xinchen Hui2017-05-081-2/+5
| | | | | | | | ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER())
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-04-151-0/+2
|\ \ | |/
| * Improve accuracy of opline lineno informationNikita Popov2017-04-151-0/+2
| | | | | | | | | | If compile_var() was used instead of compile_expr() we did not update the current lineno.
* | Fixed bug #74444: multiple catch freezes in some casesDavid Matejka2017-04-151-0/+1
| | | | | | | | zend_emit_jump() may reallocate, so reload the opline.
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-03-231-1/+3
|\ \ | |/
| * Fix lineno for AST_ZVAL nodesNikita Popov2017-03-231-1/+3
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-02-281-1/+5
|\ \ | |/ | | | | | | * PHP-7.0: Fix potential crash when setting invalid declare value
| * Fix potential crash when setting invalid declare valueSara Golemon2017-02-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | Using a non-literal expression in a declare value can cause the compiler to crash trying to turn that AST node into a usable zval. There was an existing test for such values using 'encoding', but that didn't crash because it's handled by the lexer rather than being compiled. Trying to use a non-literal with ticks reproduces the crash.
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Fix string extension in negate_num_stringNikita Popov2016-12-211-1/+1
| | | | | | | | Forgot to actually assign the reallocated string...
* | Revert "Reorder the oplines" (Break Zend/tests/return_types/bug71092.phpt)Xinchen Hui2016-12-211-2/+2
| | | | | | | | This reverts commit a12f43ee2c3d27a7eb9a3c873901643df5f7197e.
* | Reorder the oplinesXinchen Hui2016-12-171-2/+2
| | | | | | | | | | | | | | | | | | 1. we should only do the return type checking when it is really about to return 2. for 029.php, actually, the exception threw should be discard while it jmp into finally(it could be observed by change the return to return an array) 3. after this fix, the test 029.phpt behavior consistently with 7.0 4. good for optimizer too
* | Fix T_NUM_STRING negationNikita Popov2016-12-111-0/+22
| | | | | | | | | | | | | | T_NUM_STRING follows the rules of symtable numeric string conversion. If the offset isn't an integer under those rules, it is treated as a string. This should apply to negated T_NUM_STRINGs as well.
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2016-12-061-1/+10
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created with list())
| * Fixed bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created ↵Xinchen Hui2016-12-061-1/+10
| | | | | | | | with list())
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2016-11-241-4/+2
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name)
| * Fixed bug #73585 (Logging of "Internal Zend error - Missing class ↵Xinchen Hui2016-11-241-4/+2
| | | | | | | | | | | | information" missing class name) Actually, I doubt how thing bug could be triggered
* | Intriduced ZEND_ACC_INHERITED class flag.Dmitry Stogov2016-11-011-0/+1
| | | | | | | | It's going to be helpful for static optimisations, when "parent" is not known yet.
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-10-081-34/+37
|\ \ | |/
| * Fix bug #66773, #66862Nikita Popov2016-10-081-34/+37
| | | | | | | | | | | | | | | | | | | | | | | | This a partial backport of 8754b19. It a) fixes the class/function/constant import table confusion in the namespaced case, and b) restricts conflict checks to a single file based on a filename pointer comparison. It does not fix the issues with filename reuse (e.g. due to eval) and late-bound classes. This part of the change requires globals changes.
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-09-281-1/+5
|\ \ | |/
| * Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2016-09-281-1/+5
| |\
| | * Handle resource keys in constexpr arraysNikita Popov2016-09-281-0/+3
| | |
| | * Fix the constant array case as wellNikita Popov2016-09-281-2/+5
| | |
| | * Don't enforce LSP if prototype method is privatePedro Magalhães2016-07-051-2/+2
| | | | | | | | | | | | Fixes bug #72496.
| | * Fix ZTS builds by adding a missing TSRMLS_FETCH().Adam Harvey2016-04-201-0/+1
| | |
| | * Prevent usage in GC after free.Dmitry Stogov2016-04-191-1/+2
| | |
| | * Fix #69537: __debugInfo with empty string for key gives errorJoe Watkins2016-04-031-1/+1
| | |
| | * bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
| | |
| | * Fixed bug #70958 (Invalid opcode while using ::class as trait method ↵Xinchen Hui2015-11-231-2/+8
| | | | | | | | | | | | paramater default value)
| | * Fixed bug #70957 (self::class can not be resolved with reflection for ↵Xinchen Hui2015-11-231-1/+1
| | | | | | | | | | | | abstract class)
| | * Fixed bug #70828 (php-fpm 5.6 with opcache crashes when referencing a ↵Xinchen Hui2015-11-021-1/+1
| | | | | | | | | | | | non-existent constant)
| | * Fixed bug #70632 (Third one of segfault in gc_remove_from_buffer)Xinchen Hui2015-10-031-5/+1
| | |
| | * fix C89 compatAnatol Belski2015-07-071-1/+3
| | |
* | | Combine code for keyed/unkeyed list()Nikita Popov2016-09-281-58/+29
| | |
* | | Fix segfault when empty entry in keyed array assignmentNikita Popov2016-09-281-8/+9
| | |
* | | Use SEND_USER for CONST|TMP as wellNikita Popov2016-09-251-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise we're missing the "expected to be a reference, value given" warning that appears for ordinary calls to call_user_func(). Also update an UPGRADING note with recent changes wrt call_user_func().
* | | Compile intval() etc to castsNikita Popov2016-09-091-0/+26
| | |
* | | Add ISSET_ISEMPTY_STATIC_PROP to smart branch listNikita Popov2016-09-061-0/+1
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2016-08-291-1/+33
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed bug #72944 (Null pointer deref in zval_delref_p).
| * | Fixed bug #72944 (Null pointer deref in zval_delref_p).Dmitry Stogov2016-08-291-1/+33
| | |