summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove local variablesPeter Kokot2019-02-031-8/+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
|
* Implement typed propertiesNikita Popov2019-01-111-0/+1
| | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* Eliminate zend_string_destroy() wrapper in release buildDmitry Stogov2018-12-281-0/+6
|
* Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-3/+3
|
* Remove unnecessary destroy wrappersNikita Popov2018-09-161-38/+4
| | | | | | There used to be needed due to ZEND_FILE_LINE in debug builds. As the argument is no longer passed, we don't need the wrappers either.
* Remove unused ZEND_FILE_LINE in i_zval_ptr_dtorNikita Popov2018-09-161-2/+2
|
* 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.
* API cleanup.Dmitry Stogov2018-07-231-40/+25
| | | | | Removed useless filename and lineno arguments, used in DEBUG build. The patch doesn't break source compatibility of public API (only binary compatibility).
* rename ref_dtor_func to rc_dtor_funcXinchen Hui2018-07-061-17/+17
|
* Rename zval_dtor_func and ref_dotr_funcXinchen Hui2018-07-061-17/+17
|
* Revert "Rename _zval_dtor_func to _ref_dtor_func"Xinchen Hui2018-07-061-17/+17
| | | | This reverts commit a362ae6b12419369c5cbdbb4e924915f9b196ef6.
* Rename _zval_dtor_func to _ref_dtor_funcXinchen Hui2018-07-061-17/+17
|
* API cleanup. Removed unused functions (kept compatibility macros).Dmitry Stogov2018-07-041-81/+19
|
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-2/+3
| | | | where we sure about string persistence.
* Added missing debug argumentsDmitry Stogov2018-05-281-2/+2
|
* Put ZEND_FASTCALL into the proper place.Dmitry Stogov2018-01-161-1/+1
|
* Optimize zval_dtor_func()Dmitry Stogov2018-01-161-40/+71
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Improved branch prediction and code localityDmitry Stogov2017-12-141-1/+1
|
* Added assertionDmitry Stogov2017-12-071-0/+1
|
* Removed workaraouns for inconsistent zvals (REFCOUNTED+INTERNED). They ↵Dmitry Stogov2017-11-031-4/+0
| | | | should be fixed now.
* Reverted incomplete fix and too strict asserts.Dmitry Stogov2017-11-011-0/+4
|
* Change checks that should be always true into ZEND_ASSERT() (some edge cases ↵Dmitry Stogov2017-10-311-1/+3
| | | | may be trapped here).
* AST don't have to be COPYABLE anymore.Dmitry Stogov2017-10-101-2/+0
|
* Always use IS_CONSTANT_AST (IS_CONSTANT is removed).Dmitry Stogov2017-10-101-7/+1
|
* Changed zend_ast_ref structure to use only one allocation, removing ↵Dmitry Stogov2017-10-091-4/+3
| | | | dichotomy between heap/arena ASTs.
* Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2017-09-131-2/+4
|\ | | | | | | | | * PHP-7.0: Properly update string type flags
| * Properly update string type flagsDmitry Stogov2017-09-131-2/+4
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2017-09-131-7/+0
|\ \ | |/ | | | | | | * PHP-7.0: Revert "Properly update string type flags"
| * Revert "Properly update string type flags"Dmitry Stogov2017-09-131-7/+0
| | | | | | | | This reverts commit 99b1a62d559f993ed02c50e6a4298c4bd2dcd33c.
* | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2017-09-121-0/+7
|\ \ | |/ | | | | | | * PHP-7.0: Properly update string type flags
| * Properly update string type flagsDmitry Stogov2017-09-121-0/+7
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
| * Make zval_ptr_dtor / _zval_dtor_func more robustNikita Popov2016-09-171-11/+10
| | | | | | | | | | | | | | | | | | | | In particular, allow arrays with refcount>1, like we already allow for all other types. _zval_dtor_func is now the same as _zval_dtor_func_for_ptr with an extra refcount decrement check at the start. At this point we might as well drop it... Cherry-pick of ded69ee6e6039d56ee7b65b1a578ed1e3d1859da from PHP-7.1.
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Reimplemented Bob's commit bac6fdb0c52c924e726c5a78de8858bf27b6586b without ↵Dmitry Stogov2016-05-061-52/+0
| | | | | | | | insignificant renaming and white-space changes
* | Revert "Refactor zval cleanup into single function"Dmitry Stogov2016-05-061-24/+76
| | | | | | | | This reverts commit bac6fdb0c52c924e726c5a78de8858bf27b6586b.
* | Refactor zval cleanup into single functionBob Weinand2016-05-051-76/+24
| | | | | | | | Also use zval_ptr_dtor_nogc() everywhere in Zend in favor of zval_dtor()
* | Reset IMMUTABLE flag when copy_ctor'ing ASTNikita Popov2016-04-291-6/+2
| |
* | Make zval_ptr_dtor / _zval_dtor_func more robustNikita Popov2016-04-221-11/+10
| | | | | | | | | | | | | | In particular, allow arrays with refcount>1, like we already allow for all other types. _zval_dtor_func is now the same as _zval_dtor_func_for_ptr with an extra refcount decrement check at the start. At this point we might as well drop it...
* | 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-53/+0
|/ | | | | | | | | | | 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.
* Add myself into list of authors of the most refactored files.Dmitry Stogov2015-08-311-0/+1
|
* Fixed bug #69521 (Segfault in gc_collect_cycles()).Xinchen Hui2015-07-021-8/+0
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-2/+2
| | | | semantick changes).
* Added GC checks and improvementsDmitry Stogov2015-04-171-2/+2
|
* Use zend_error_noreturn() for fatal errorsDmitry Stogov2015-04-011-2/+2
|
* Use fastcall calling convention for most critical ZE subsystems.Dmitry Stogov2015-03-131-9/+3
|