summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug #74164 (PHP hangs when an invalid value is dynamically passed to ↵Xinchen Hui2017-02-251-0/+18
| | | | typehinted by-ref arg)
* Workaround to fix bug #74093 (Maximum execution time of n+2 seconds exceed ↵Xinchen Hui2017-02-151-1/+1
| | | | | | | | not written in error_log) Use a different exit code for hard_timeout, 124 is used by linux timeout:http://man7.org/linux/man-pages/man1/timeout.1.html "If the command times out, and --preserve-status is not set, then exit with status 124"
* Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-261-4/+4
|\ | | | | | | | | * PHP-7.0: Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug
| * Fixed #73973 - debug_zval_dump() assertion error for resource consts with ↵andrewnester2017-01-261-4/+4
| | | | | | | | --enable-debug
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-11-201-1/+1
|\ \
| * | Revert "Remove a few unused write warning (backport from master, oops)s"Nikita Popov2016-11-201-0/+1
| | | | | | | | | | | | This reverts commit c65d24eaa3671e61db7c2a3f28daeaf7c74ac758.
* | | Merge branch 'PHP-7.0' into PHP-7.1Bob Weinand2016-11-201-1/+1
|\ \ \ | |/ /
| * | Remove a few unused write warning (backport from master, oops)sBob Weinand2016-11-201-1/+0
| |/
* | Fixed bug #73303Nikita Popov2016-11-181-0/+2
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2016-10-181-1/+4
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Fixed bug #73337 (try/catch not working with two exceptions inside a same operation) Revert "Fix bug #47890 #73215 uniqid() should use better random source" Update NEWS
| * Merge branch 'PHP-5.6' into PHP-7.0Dmitry Stogov2016-10-181-0/+3
| |\ | | | | | | | | | | | | * PHP-5.6: Fixed bug #73337 (try/catch not working with two exceptions inside a same operation)
| | * Fixed bug #73337 (try/catch not working with two exceptions inside a same ↵Dmitry Stogov2016-10-181-0/+3
| | | | | | | | | | | | operation)
| | * bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
| | |
| | * Merge branch 'PHP-5.5' into PHP-5.6Dmitry Stogov2015-04-081-0/+4
| | |\ | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fixed bug #67314 (Segmentation fault in gc_remove_zval_from_buffer) Fixed bug #67314 (Segmentation fault in gc_remove_zval_from_buffer)
| | | * Fixed bug #67314 (Segmentation fault in gc_remove_zval_from_buffer)Dmitry Stogov2015-04-081-0/+4
| | | |
| | | * Bump yearXinchen Hui2015-01-151-1/+1
| | | |
| | * | bump yearXinchen Hui2015-01-151-1/+1
| | | |
* | | | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-09-241-11/+12
|\ \ \ \ | |/ / /
| * | | Fixed bug #73163Nikita Popov2016-09-241-29/+19
| | | |
* | | | call_user_func(_array): Don't abort on reference warningNikita Popov2016-08-231-22/+10
| | | | | | | | | | | | | | | | | | | | | | | | Change zend_call_function() to not abort the call if a non-reference is passed to a reference argument. The usual warning will still be thrown, but the call will proceed as usual.
* | | | Fix invalid free on undef const in update_const()Nikita Popov2016-07-301-16/+14
| | | | | | | | | | | | | | | | | | | | Also clean up the control flow a bit -- move all unqualified constant handling in one branch.
* | | | Safer signal handler (no malloc() call)Keyur2016-07-121-3/+6
| | | |
* | | | Fixed unused varXinchen Hui2016-06-241-1/+1
| | | |
* | | | improve ZEND_MODULE_GLOBALS_BULK macro, fix data typeAnatol Belski2016-06-231-8/+2
| | | |
* | | | typoDmitry Stogov2016-06-231-1/+1
| | | |
* | | | Turn safe timeout handling into general interrupt handling ability.Dmitry Stogov2016-06-231-4/+15
| | | |
* | | | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-2/+2
| | | | | | | | | | | | | | | | | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* | | | hard_timeout ignored on TSAnatol Belski2016-06-061-0/+2
| | | |
* | | | fix hard_timeout support in shutdown functionsAnatol Belski2016-06-061-0/+14
| | | |
* | | | Forbid dynamic calls to scope introspection functionsNikita Popov2016-05-241-1/+15
| | | | | | | | | | | | | | | | | | | | Per RFC: https://wiki.php.net/rfc/forbid_dynamic_scope_introspection
* | | | Eliminated checks for (func->op_array.fn_flags & ZEND_ACC_GENERATOR) in fast ↵Dmitry Stogov2016-05-131-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Intern some known (and offten used) strings.Dmitry Stogov2016-05-121-1/+1
| | | |
* | | | Revert "Refactor zval cleanup into single function"Dmitry Stogov2016-05-061-2/+2
| | | | | | | | | | | | | | | | This reverts commit bac6fdb0c52c924e726c5a78de8858bf27b6586b.
* | | | Refactor zval cleanup into single functionBob Weinand2016-05-051-2/+2
| | | | | | | | | | | | | | | | Also use zval_ptr_dtor_nogc() everywhere in Zend in favor of zval_dtor()
* | | | Fix bug #71897Andrea Faulds2016-05-041-1/+1
| | | |
* | | | Drop dead code from update_constantNikita Popov2016-04-291-14/+1
| | | |
* | | | Fix usages of zend_update_constant_exNikita Popov2016-04-291-6/+0
| | | | | | | | | | | | | | | | | | | | If an in-place update in an external zval is performed, it needs to incref'd beforehand, not afterwards.
* | | | Don't initialize EX(call)->symbol_table on each function call.Dmitry Stogov2016-04-281-5/+4
| | | | | | | | | | | | | | | | Keep it uninitialized, and check ZEND_CALL_HAS_SYMBOL_TABLE flag when necessary.
* | | | - get rid of EG(scope). zend_get_executed_scope() should be used instead.Dmitry Stogov2016-04-281-35/+38
| | | | | | | | | | | | | | | | - ichanged zval_update_constant_ex(). Use IS_TYPE_IMMUTABLE flag on shared constants and AST, instead of "inline_change" parameter.
* | | | Removed "zend_fcall_info.function_table". It was assigned in many places, ↵Dmitry Stogov2016-04-271-10/+2
| | | | | | | | | | | | | | | | but is never used.
* | | | Mark zend_timeout as noreturnNikita Popov2016-04-211-1/+1
| | | | | | | | | | | | | | | | Otherwise we get a compiler warning...
* | | | Safe execution timeout handling.Dmitry Stogov2016-04-201-13/+74
| | | |
* | | | Merge branch 'PHP-7.0'Joe Watkins2016-04-111-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.0: handle dummy frame
| * | | handle dummy frameJoe Watkins2016-04-111-0/+3
| | | |
* | | | Merge branch 'PHP-7.0'Xinchen Hui2016-04-011-2/+2
|\ \ \ \ | |/ / /
| * | | Fixed bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)Xinchen Hui2016-04-011-2/+2
| | | |
* | | | Merge zend_execute_data->called_scope into zend_execute_data->This.Dmitry Stogov2016-04-011-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "called_scope" made sense only for static method calls, for dynamic calls it was always equal to the class of $this. Now EG(This) may store IS_OBJECT + $this or IS_UNUSED + "called_scope" (of course, "called_scope" may be NULL). Some code might need to be adopted to support this change. Checks (Z_OBJ(EX(This))) might need to be converted into (Z_TYPE(EX(This)) == IS_OBJECT).
* | | | Use CALL_INFO flag to check if we need to destroy symbol_table.Dmitry Stogov2016-03-311-0/+1
| | | | | | | | | | | | | | | | This saves one memory load on most RETURN opcodes.