summaryrefslogtreecommitdiff
path: root/Zend/zend_objects.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.
* se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)Dmitry Stogov2018-07-041-1/+1
|
* Reduced overhead of magic method calls ↵Dmitry Stogov2018-06-221-9/+44
| | | | (__get/__set/__unset/__isset/__dectructor/__clone).
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-1/+1
| | | | where we sure about string persistence.
* Optimize zend_hash_real_init()Dmitry Stogov2018-03-231-1/+1
|
* Get rid of IS_OBJ_USE_GUARDS and IS_OBJ_HAS_GUARDS flagsDmitry Stogov2018-02-271-4/+2
|
* Use OBJ_FLAGS() macro to access object flags (even if they are currently ↵Dmitry Stogov2018-01-221-2/+2
| | | | stored together with GC_FLAGS)
* Use HT_FLAGS() macroDmitry Stogov2018-01-221-2/+2
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Use fastcall calling convention for objects and resources APIDmitry Stogov2017-12-141-3/+3
|
* Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-4/+4
| | | | | | 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.
* Refactored array creation API. array_init() and array_init_size() are ↵Dmitry Stogov2017-09-201-2/+1
| | | | converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Cleanup. Removed unused functions and unimplemented prototype. Avoid useless ↵Dmitry Stogov2017-06-271-1/+1
| | | | "dtor_obj" calls.
* Unused varXinchen Hui2017-05-081-2/+0
|
* Don't double initialize object propertiesNikita Popov2017-05-041-9/+11
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Turn IS_TYPE_COLLECTABLE zval flag into GC_COLLECTABLE zend_refcounted flag.Dmitry Stogov2016-10-211-1/+1
| | | | This simplifies checks and allows reset this flag for "acyclic" arrays and objects.
* EG(fake_scope) was always set to NULL wronglyXinchen Hui2016-06-121-7/+4
|
* Fixed bug #72177 (Scope issue in __destruct after ↵Dmitry Stogov2016-05-131-0/+7
| | | | ReflectionProperty::setValue())
* - get rid of EG(scope). zend_get_executed_scope() should be used instead.Dmitry Stogov2016-04-281-20/+20
| | | | - ichanged zval_update_constant_ex(). Use IS_TYPE_IMMUTABLE flag on shared constants and AST, instead of "inline_change" parameter.
* Optimize property guards for the most usual case with only one acive guard.Dmitry Stogov2016-04-271-5/+10
|
* IS_CONST operands don't have to be separated. Use reference-counting instead ↵Dmitry Stogov2016-04-051-1/+1
| | | | | | | of duplication. - with opcache all IS_CONST operands are not refcounted (scalars, interned strings or immutable arrays) - without opcache IS_CONST operands are not shared between processes or threads and may use common reference counters
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Add myself into list of authors of the most refactored files.Dmitry Stogov2015-08-311-0/+1
|
* Fixed bug #70187 (Notice: unserialize(): Unexpected end of serialized data)Dmitry Stogov2015-08-261-0/+3
|
* Use NULL where possible for exception classAaron Piotrowski2015-07-071-2/+2
| | | | Matches usage of zend_throw_exception()/zend_throw_exception_ex().
* Remove need to pass error levelAaron Piotrowski2015-07-031-10/+22
|
* Enable throwing custom exceptions from errorsAaron Piotrowski2015-07-031-2/+2
|
* Fixed bug #69521 (Segfault in gc_collect_cycles()).Xinchen Hui2015-07-021-2/+0
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-4/+4
| | | | semantick changes).
* Fixed memroy errors with valgrindXinchen Hui2015-06-291-0/+2
|
* Use COW to prevent unnecessary duplication of dynamic propertyes of stdClass ↵Dmitry Stogov2015-06-171-1/+15
| | | | (and other classes without predefined properties).
* Improved hash table copyingDmitry Stogov2015-05-191-3/+7
|
* Micro optimizationsDmitry Stogov2015-04-281-7/+11
|
* Micro optimizationsDmitry Stogov2015-04-271-12/+17
|
* Convert fatal errors into EngineExceptionDmitry Stogov2015-04-021-1/+1
|
* Convert fatal errors into EngineExceptionsDmitry Stogov2015-04-011-2/+2
|
* Use zend_error_noreturn() for fatal errorsDmitry Stogov2015-04-011-1/+1
|
* Make zend_array_destroy() to free the corresponding zend_arrayDmitry Stogov2015-02-241-1/+0
|
* Move zend_object->guards into additional slot of ↵Dmitry Stogov2015-02-041-6/+13
| | | | zend_object->properties_table[]. As result size of objects without __get/__set/__unset/__isset magic methods is reduced.
* bump yearXinchen Hui2015-01-151-1/+1
|
* Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-151-2/+2
|\ | | | | | | | | | | | | | | | | | | * origin/master: made the apache ini holders to be zend_bool Removed useless local variable Use simpler functions Fixed test small fixes to UPGRADING Reorder to save alignment size (of course, only for common used structs)
| * Use simpler functionsDmitry Stogov2014-12-151-2/+2
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-13/+13
|/
* Added new optimized zend_array_destroy() functionDmitry Stogov2014-11-251-1/+1
|
* Use inline version of the function in the loopDmitry Stogov2014-11-241-3/+4
|
* Fix bug #68262: Broken reference across cloned objectsNikita Popov2014-10-191-1/+2
|
* Preallocate hash tables of required sizeDmitry Stogov2014-09-031-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-1/+1
|