summaryrefslogtreecommitdiff
path: root/Zend/zend_closures.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove local variablesPeter Kokot2019-02-031-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Adios, yearly copyright rangesZeev Suraski2019-01-301-1/+1
|
* Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-1/+1
|
* Avoid hash lookups in BIND_STATIC and BIND_LEXICAL opcode handlers.Dmitry Stogov2018-08-201-0/+1
| | | | Encode static variable offset into opline->extended_value.
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Use ZEND_CLOSURE_OBJECT() macro to resolve closure op_array to closure ↵Dmitry Stogov2018-01-111-0/+4
| | | | object through address calculation, instead of op_array->prototype reuse. (reapply 781e1573afdc7c336b3577ceabc9c65cafea17e8, now it should be OK).
* Revert "Use ZEND_CLOSURE_OBJECT() macro to resolve closure op_array to ↵Dmitry Stogov2018-01-111-4/+0
| | | | | | closure object through address calculation, instead of op_array->prototype reuse." (this patch is incomplete or wrong) This reverts commit 781e1573afdc7c336b3577ceabc9c65cafea17e8.
* Use ZEND_CLOSURE_OBJECT() macro to resolve closure op_array to closure ↵Dmitry Stogov2018-01-111-0/+4
| | | | object through address calculation, instead of op_array->prototype reuse.
* year++Xinchen Hui2018-01-021-1/+1
|
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-7.0'Xinchen Hui2016-01-021-1/+1
|\
| * bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
| |
* | Introduce BIND_LEXICALNikita Popov2015-12-291-0/+1
|/ | | | | | | | | | | This opcodes inserts a local CV into the closure static variable table. This replaces the previous mechanism of having static variables marked as LEXICAL, which perform a symtable lookup during copying. This means a) functions which contain closures no longer have to rebuild their symtable (better performance) and b) we can now track used variables in SSA.
* Forbid "fake" closure rebindingDmitry Stogov2015-10-121-0/+1
|
* Fix LSB handling for closuresNikita Popov2015-05-051-1/+1
| | | | | | | | | | Closures will now use the called_scope from their instantiation site. If they are rebound either the class of $this is used or if no $this is provided the bound scope is used. With this change the scope for static closures can be changed back to use EG(scope) rather than EX(called_scope), thus fixing bug #69568.
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-5/+5
|
* Refactored data structures to keep zend_object* instead of a whole zval in ↵Dmitry Stogov2014-03-281-1/+1
| | | | some places
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Fixed bug #61025 (__invoke() visibility not honored)Xinchen Hui2013-03-081-2/+0
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* restore $this support for closures to its former gloryStanislav Malyshev2010-04-191-1/+2
|
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* [DOC] Remove $this support in closures for PHP 5.3 beta 1Christian Seiler2009-01-261-3/+1
| | | | | | - Implementation notes here: http://wiki.php.net/rfc/closures/removal-of-this
* Reverted "Rebind closure when binding to property"Dmitry Stogov2009-01-141-1/+0
|
* - MFH Rebind closure when binding to propertyMarcus Boerger2009-01-031-0/+1
|
* - MFH Add reflection support helpersMarcus Boerger2009-01-031-0/+2
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* - Made closures implementation reflection friendly (Christian)Dmitry Stogov2008-08-111-0/+5
| | | | | - Changed E_ERROR(s) into E_RECOVERABLE_ERROR(s) (Marcus)
* Added support for lambda functions and closuresDmitry Stogov2008-07-141-0/+42