summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Call function_add_ref() in proper placeDmitry Stogov2018-10-301-4/+1
| | |
* | | Don't initialize static_member_tables during start-up, when inherit internal ↵Dmitry Stogov2018-10-191-4/+7
| | | | | | | | | | | | classes.
* | | Immutable clases and op_arrays.Dmitry Stogov2018-10-171-32/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit cd0c36c3f943849e5b97a8dbe2dd029fbeab3df9 Merge: 4740dabb84 ad6738e886 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 14:43:38 2018 +0300 Merge branch 'master' into immutable * master: Remove the "auto" encoding Fixed bug #77025 Add vtbls for EUC-TW encoding commit 4740dabb843c6d4f7f866b4a2456073c9eaf4c77 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 14:12:28 2018 +0300 Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes. commit ad7a78b253be970db70c2251e66f9297d8e7f829 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:46:30 2018 +0300 Added comment commit 0276ea51875bab37be01a4dc5e5a047c5698c571 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:42:43 2018 +0300 Added type cast commit c63fc5d5f19c58498108d1698055b2b442227eb3 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:36:51 2018 +0300 Moved static class members initialization into the proper place. commit b945548e9306b1826c881918858b5e5aa3eb3002 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:21:03 2018 +0300 Removed redundand assertion commit d5a41088401814c829847db212488f8aae39bcd2 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:19:13 2018 +0300 Removed duplicate code commit 8dadca8864e66de70a24bdf1181bcf7dd8fb27d7 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:05:43 2018 +0300 Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros. commit 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 10:48:29 2018 +0300 typo commit a06f0f3d3aba53e766046221ee44fb9720389ecc Merge: 94099586ec 3412345ffe Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 10:47:07 2018 +0300 Merge branch 'master' into immutable * master: Remove unused variable makefile_am_files Classify object handlers are required/optional Add support for getting SKIP_TAGSTART and SKIP_WHITE options Remove some obsolete config_vars.mk occurrences Remove bsd_converted from .gitignore Remove configuration parser and scanners ignores Remove obsolete buildconf.stamp from .gitignore [ci skip] Add magicdata.patch exception to .gitignore Remove outdated ext/spl/examples items from .gitignore Remove unused test.inc in ext/iconv/tests commit 94099586ec599117581ca01c15b1f6c5f749e23a Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Oct 15 23:34:01 2018 +0300 Immutable clases and op_arrays
* | | Removed wrong reference countingDmitry Stogov2018-10-031-3/+0
| | |
* | | More careful handling of function prototypesDmitry Stogov2018-10-031-31/+39
| | |
* | | typoDmitry Stogov2018-10-031-1/+1
| | |
* | | Avoid method compatibility check with itselfDmitry Stogov2018-10-031-0/+5
| | |
* | | Allocate only necessary space for static properties of internal classes in ↵Dmitry Stogov2018-10-011-0/+10
| | | | | | | | | | | | ZTS mode.
* | | Drop unused variableDmitry Stogov2018-09-191-1/+0
| | |
* | | Micro-optimizationDmitry Stogov2018-09-191-6/+3
| | |
* | | Replace ZEND_ACC_ANON_BOUND, ZEND_ACC_UNRESOLVED_PARENT and ↵Dmitry Stogov2018-09-181-7/+3
| | | | | | | | | | | | ZEND_ACC_UNRESOLVED_INTERFACES with single ZEND_ACC_LINKED.
* | | Better ZEND_ACC_CHANGED handlingDmitry Stogov2018-09-121-7/+4
| | |
* | | Removed weird test, trait can't be "static" or "final".Dmitry Stogov2018-09-111-15/+4
| | |
* | | Squashed commit of the following:Dmitry Stogov2018-09-111-40/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 2d3cac9e005d6bef9aa73ab57cc674aa53125954 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:54:47 2018 +0300 Fixed static property access commit 31786ee27282f319f3ef2a07635b1f325cbd67c6 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:05:29 2018 +0300 Avoid duplicate checks commit 5ae502b979ea33d058d01a9421eec5afd0084e8d Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 10:39:17 2018 +0300 Optimization commit 82c17f0e8af02c9cf7d1bbdae4e3158330148203 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:26:50 2018 +0300 Removed unused zend_duplicate_property_info() commit ba53d1d0dd91d5530328a11cac93ff9e75c462b5 Merge: eacc11b8fd c4b14370cf Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:24:13 2018 +0300 Merge branch 'master' into shadow * master: 7.0.33 next Sync NEWS [ci skip] add NEWS for 76582 Enforce ordering of property compare in object comparisons Fixed wrong assertion Skip test on unsuitable env commit eacc11b8fdeb002ee6a149defd8b5a8c3412896a Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 13:12:39 2018 +0300 Fixed failure of ext/spl/tests/array_017.phpt commit 62d1871430a1b81c84b790460afff0682648689a Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 11:55:07 2018 +0300 Fixed issues commit 1d37e3a40e4d07c4b933ed6f9d2e649dd01180f0 Merge: d6c3f098b6 1e550e6f7e Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 10:21:20 2018 +0300 Merge branch 'master' into shadow * master: Update NEWS Fix for bug #76582 Fix ssl stream reneg limit test to print only after first renegotiation Make a copy unconditionally Fix memory leak in pcre cache Remove not needed checking for <errno.h> Remove HAVE_ASSERT_H Add test for bug #76850 Fixed bug #76850 Exit code mangled by set locale/preg_match Remove empty PHP tags from test Fix #75273: php_zlib_inflate_filter() may not update bytes_consumed Fix PCRE2 exclusion and remove dead libs in Makefile.gcov Report mem leaks to stderr if no Win debugger is present Use combined assignment contanation operator Fixed bug #76796 Support fixed address mmap without replacement commit d6c3f098b6015e76d042691de0af2e1426c66829 Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Sep 7 13:56:30 2018 +0300 Get rid of ZEND_ACC_SHADOW
* | | Get rid of ZEND_ACC_CTOR, ZEND_ACC_DTOR and ZEND_ACC_IMPLEMENTED_ABSTRACTDmitry Stogov2018-09-051-72/+82
| | |
* | | Merge branch 'PHP-7.3'Dmitry Stogov2018-09-031-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fixed reference-countingin ZTS build.
| * | Merge branch 'PHP-7.2' into PHP-7.3Dmitry Stogov2018-09-031-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fixed reference-countingin ZTS build.
| | * Merge branch 'PHP-7.1' into PHP-7.2Dmitry Stogov2018-09-031-1/+1
| | |\ | | | | | | | | | | | | | | | | * PHP-7.1: Fixed reference-countingin ZTS build.
| | | * Fixed reference-countingin ZTS build.Dmitry Stogov2018-09-031-1/+1
| | | |
* | | | Merge branch 'PHP-7.3'Dmitry Stogov2018-08-291-4/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.3: Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
| * | | Merge branch 'PHP-7.2' into PHP-7.3Dmitry Stogov2018-08-291-4/+9
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.2: Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
| | * | Merge branch 'PHP-7.1' into PHP-7.2Dmitry Stogov2018-08-291-4/+9
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.1: Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
| | | * Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for ↵Dmitry Stogov2018-08-291-4/+9
| | | | | | | | | | | | | | | | internal functions).
| | | * year++Xinchen Hui2018-01-021-1/+1
| | | |
| | | * Revert "Inheritance checks should not ignore parents if these implement an ↵Joe Watkins2017-02-011-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | interface" This reverts commit b67eb3440bb244adf6957bf2c68aeeaa6efc8c8d.
| | * | year++Xinchen Hui2018-01-021-1/+1
| | | |
* | | | Cleanup class linkingDmitry Stogov2018-08-271-33/+39
| | | |
* | | | Move zend_verify_abstract_class() into zend_inheritance.cDmitry Stogov2018-08-271-0/+59
| | | |
* | | | Keep information about unresolved parent class in zend_class_entry->parent_nameDmitry Stogov2018-08-241-0/+4
| | | |
* | | | Keep information about unresolved interfaces in ↵Dmitry Stogov2018-08-231-9/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | zend_class_entry->interface_names. Move interface implementation code into ZEND_DECLARE_*CLASS opcodes. Remove ZEND_ADD_INTERFACE and ZEND_VERIFY_ABSTRACT_CLASS opcodes.
* | | | Replace zend_class_entry->traits by persistent zend_class_entry->trait_names.Dmitry Stogov2018-08-231-62/+67
| | | | | | | | | | | | | | | | | | | | Move trait binding code into ZEND_DECLARE_*CLASS opcodes. Remove ZEND_ADD_TRIAIT and ZEND_BIND_TRAITS opcodes.
* | | | Merge branch 'PHP-7.3'Christoph M. Becker2018-08-221-3/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.3: Fix #76773 - Methods with a concrete scope need to be added again
| * | | Fix #76773 - Methods with a concrete scope need to be added againChris Wright2018-08-221-3/+4
| | | |
| * | | Fix #76700 - Methods with altered visibility need to be added againPedro Magalhães2018-08-071-2/+4
| | | |
* | | | Fix some misspellingsGabriel Caruso2018-08-121-17/+17
| | | |
* | | | Fix #76700 - Methods with altered visibility need to be added againPedro Magalhães2018-08-031-2/+4
|/ / /
* | | Improved user iterator implementation to reduce zend_class_entry memory ↵Dmitry Stogov2018-07-121-2/+17
| | | | | | | | | | | | consumption and avoid race condition during resolving/caching of user iterator functions of internal classes in ZTS build.
* | | Changed structure of zend_class_entry.trait_aliases and ↵Dmitry Stogov2018-07-111-130/+128
| | | | | | | | | | | | zend_class_entry.trait_precedences to avoid keeping "intermediate" trait references, that are used only during inheritance.
* | | Combined few checks into oneDmitry Stogov2018-07-091-5/+1
| | |
* | | Avoid reloadingDmitry Stogov2018-07-091-1/+1
| | |
* | | Eliminated checkDmitry Stogov2018-07-091-4/+4
| | |
* | | Avoid string comparisons for magic methods (all magic methods start with "__")Dmitry Stogov2018-07-021-12/+14
| | |
* | | Fixed ZTS race condition (zend_class_entry->ce_flags of internal classes ↵Dmitry Stogov2018-06-271-2/+0
| | | | | | | | | | | | must not be modified, because internal class enties are shared between threads)
* | | Fixed bug #76509Nikita Popov2018-06-251-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In PHP static properties are shared between inheriting classes, unless they are explicitly overwritten. However, because this functionality was implemented using reference, it was possible to break the implementation by reassigning the static property reference. This is fixed by switching the implementation from using references to using INDIRECTs, which cannot be affected by userland code.
* | | Avoid duplication of "shadow" property_infoDmitry Stogov2018-06-221-1/+1
| | |
* | | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-13/+13
| | | | | | | | | | | | where we sure about string persistence.
* | | Avoid useless checks, using zend_string_efree(), in cases where the string ↵Dmitry Stogov2018-05-081-2/+2
| | | | | | | | | | | | is known to be a temporary allocated zend_string.
* | | Remove no longer necessary type-name special casesNikita Popov2018-02-041-8/+2
| | | | | | | | | | | | | | | zend_get_type_by_name() now produces the correct value by itself, so we no longer need these workarounds.
* | | Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | year++Xinchen Hui2018-01-021-1/+1
| | |