summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Removed deprecated paths. Changed "switch" into series of "if".Dmitry Stogov2015-03-031-23/+13
|
* Make zend_array_destroy() to free the corresponding zend_arrayDmitry Stogov2015-02-241-2/+0
|
* Merged zend_array and HashTable into the single data structure.Dmitry Stogov2015-02-131-28/+16
| | | | | Now each HashTable is also zend_array, so it's refcounted and may be a subject for Copy on Write zend_array_dup() was changed to allocate and return HashTable, instead of taking preallocated HashTable as argument.
* Fix resource leak when casting to stringNikita Popov2015-01-241-0/+2
|
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-15/+15
|
* Fix uses of zval_add_ref and add comment on usageNikita Popov2015-01-051-2/+4
| | | | | | | | zval_add_ref should be used as a copy ctor, after the value was already copied. In particular when used with hash insertions, it should be applied to the return value of the insert function.