summaryrefslogtreecommitdiff
path: root/Zend/zend_iterators.c
Commit message (Collapse)AuthorAgeFilesLines
* Add get_gc handle for object iteratorsNikita Popov2020-07-011-1/+5
| | | | Optional handler with the same semantics as the object handler.
* Fix [-Wmissing-field-initializers] compiler warning in zend_iteratorGeorge Peter Banyard2020-02-101-3/+4
| | | | | | | | Add missing NULL pointer for get_properties_for in iterator_object_handlers initialization. Also add two missing comments describing what the NULL pointer refer to in iterator_object_handlers initialization.
* Comparison cleanup:Dmitry Stogov2019-10-071-1/+0
| | | | | - introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval) - remove compare_objects() object handler, and keep only compare() handler
* Remove get() object handlerNikita Popov2019-05-291-1/+0
| | | | | | | | Now that set() is gone, there is little point in keeping get(), as it is essentially just a different way of writing cast_object() now. Closes GH-4202.
* Remove set() object handlerNikita Popov2019-05-291-1/+0
|
* Remove ZEND_OVERLOADED_FUNCTION and corresponding call_method object handlerDmitry Stogov2019-02-071-1/+0
|
* Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-2/+2
| | | | insted of zval(s).
* 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
|
* Add dummy get_gc handler for iterator wrapperNikita Popov2019-01-151-1/+9
| | | | | | | get_gc is assumed to be non-NULL in master, and get_gc can be called on the iterator wrapper if during generator GC, so we need to define this handler. For now it's just a dummy, though for full support we'd have to also add a get_gc iterator handler that is called here.
* 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.
* Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-141-1/+1
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
| | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Replaced wrong check with proper ZEND_ASSERT()Dmitry Stogov2016-06-081-2/+2
|
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h.Dmitry Stogov2015-08-131-1/+1
| | | | | | This prevented compilation warnings and disclosed few incorrect usages in Zend/zend_vm_def.h and ext/dom/xpath.c. Now explicit type casting may be required on call site. This may break some C extension code, but it shoulfn't be a problem to add explicit casting.
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-11/+11
|
* Fixed compilation warningsDmitry Stogov2014-12-121-1/+6
|
* Remove Z_OBJ_CLASS_NAME_PNikita Popov2014-10-091-1/+0
| | | | | Doesn't make much sense anymore, now that get_class_entry is gone.
* Optimized FE_RESET and FE_FETCHDmitry Stogov2014-09-161-21/+5
|
* dtor handler must be setDmitry Stogov2014-08-211-2/+7
|
* Cleanup (1-st round)Dmitry Stogov2014-04-151-2/+0
|
* Fix ZTS buildNikita Popov2014-04-091-1/+1
| | | | | This only makes it compile, it doesn't actually work, presumably because interned strings are assumed in some places.
* Fixed destruction of objects and iterators on unclean request shutdown and ↵Dmitry Stogov2014-04-091-0/+1
| | | | | | GC (few cases are still unfixed). Now we destroy objects it two steps. At first - object properties of all objects and only then the objects their selves.
* Changed data layout to allow more efficient operationsDmitry Stogov2014-04-021-1/+1
|
* Add zend_iterator_dtorXinchen Hui2014-02-281-0/+9
|
* Fixed iterators API. zend_iterator_init() has to be used in each ↵Dmitry Stogov2014-02-261-4/+3
| | | | get_iterator() callback.
* Generator related fixesDmitry Stogov2014-02-261-1/+3
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-121-14/+7
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-101-4/+8
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-10-091-0/+0
|\
| * Fixed bug #63236 (Executable permission on various source files)Xinchen Hui2012-10-091-0/+0
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * - Year++Felipe Pena2011-01-011-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | Fixed ZE specific compile warnings (Bug #55629)Dmitry Stogov2011-09-131-3/+1
| |
* | - Year++Felipe Pena2011-01-011-1/+1
| |
* | - Back the free() call for __iterator_wrapper to free the ce->name, as it is ↵Felipe Pena2010-08-081-0/+4
| | | | | | | | a fake class
* | Use interned strings for class namesDmitry Stogov2010-08-051-2/+0
| |
* | Added a number of small performance tweaks and optimizationsDmitry Stogov2010-04-201-2/+2
|/ | | | | | | . ZEND_RECV now always has IS_CV as its result . ZEND_CATCH now has to be used only with constant class names . ZEND_FETCH_DIM_? may fetch array and dimension operans in a different order
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|