Dmitry Stogov
94099586ec
Immutable clases and op_arrays
7 years ago
Peter Kokot
7f6387b59a
Trim trailing whitespace in source code files
7 years ago
Dmitry Stogov
2ebac3263b
Removed wrong reference counting
7 years ago
Dmitry Stogov
60591328f8
More careful handling of function prototypes
7 years ago
Dmitry Stogov
b9e485a7fd
typo
7 years ago
Dmitry Stogov
c88b53318f
Avoid method compatibility check with itself
7 years ago
Dmitry Stogov
a2e8334613
Allocate only necessary space for static properties of internal classes in ZTS mode.
7 years ago
Dmitry Stogov
27b9fac19c
Drop unused variable
7 years ago
Dmitry Stogov
2a54867f7e
Micro-optimization
7 years ago
Dmitry Stogov
689c6fb188
Replace ZEND_ACC_ANON_BOUND, ZEND_ACC_UNRESOLVED_PARENT and ZEND_ACC_UNRESOLVED_INTERFACES with single ZEND_ACC_LINKED.
7 years ago
Dmitry Stogov
beb3594eb8
Better ZEND_ACC_CHANGED handling
7 years ago
Dmitry Stogov
1570fe180f
Removed weird test, trait can't be "static" or "final".
7 years ago
Dmitry Stogov
3a249e769b
Squashed commit of the following:
commit 2d3cac9e00
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue Sep 11 11:54:47 2018 +0300
Fixed static property access
commit 31786ee272
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue Sep 11 11:05:29 2018 +0300
Avoid duplicate checks
commit 5ae502b979
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue Sep 11 10:39:17 2018 +0300
Optimization
commit 82c17f0e8a
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue Sep 11 09:26:50 2018 +0300
Removed unused zend_duplicate_property_info()
commit ba53d1d0dd
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 eacc11b8fd
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 62d1871430
Author: Dmitry Stogov <dmitry@zend.com>
Date: Mon Sep 10 11:55:07 2018 +0300
Fixed issues
commit 1d37e3a40e
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 d6c3f098b6
Author: Dmitry Stogov <dmitry@zend.com>
Date: Fri Sep 7 13:56:30 2018 +0300
Get rid of ZEND_ACC_SHADOW
7 years ago
Dmitry Stogov
8939c4d96b
Get rid of ZEND_ACC_CTOR, ZEND_ACC_DTOR and ZEND_ACC_IMPLEMENTED_ABSTRACT
7 years ago
Dmitry Stogov
7fde2243a7
Fixed reference-countingin ZTS build.
7 years ago
Dmitry Stogov
709e4e4f17
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
7 years ago
Dmitry Stogov
2fbfdde1b6
Cleanup class linking
7 years ago
Dmitry Stogov
ea9628936f
Move zend_verify_abstract_class() into zend_inheritance.c
7 years ago
Dmitry Stogov
8050f4a334
Keep information about unresolved parent class in zend_class_entry->parent_name
7 years ago
Dmitry Stogov
d140df58e6
Keep information about unresolved interfaces in zend_class_entry->interface_names.
Move interface implementation code into ZEND_DECLARE_*CLASS opcodes.
Remove ZEND_ADD_INTERFACE and ZEND_VERIFY_ABSTRACT_CLASS opcodes.
7 years ago
Dmitry Stogov
67397970b2
Replace zend_class_entry->traits by persistent zend_class_entry->trait_names.
Move trait binding code into ZEND_DECLARE_*CLASS opcodes.
Remove ZEND_ADD_TRIAIT and ZEND_BIND_TRAITS opcodes.
7 years ago
Chris Wright
9ace33b9c5
Fix #76773 - Methods with a concrete scope need to be added again
7 years ago
Gabriel Caruso
84b195d9fc
Fix some misspellings
7 years ago
Pedro Magalhães
887235773d
Fix #76700 - Methods with altered visibility need to be added again
7 years ago
Pedro Magalhães
97b2558b76
Fix #76700 - Methods with altered visibility need to be added again
7 years ago
Dmitry Stogov
7d4e18b05d
Improved user iterator implementation to reduce zend_class_entry memory consumption and avoid race condition during resolving/caching of user iterator functions of internal classes in ZTS build.
8 years ago
Dmitry Stogov
85ee47eda0
Changed structure of zend_class_entry.trait_aliases and zend_class_entry.trait_precedences to avoid keeping "intermediate" trait references, that are used only during inheritance.
8 years ago
Dmitry Stogov
e4be6ce0fa
Combined few checks into one
8 years ago
Dmitry Stogov
797e87060c
Avoid reloading
8 years ago
Dmitry Stogov
a34fedb723
Eliminated check
8 years ago
Dmitry Stogov
43aca3118a
Avoid string comparisons for magic methods (all magic methods start with "__")
8 years ago
Dmitry Stogov
6dc0cd868d
Fixed ZTS race condition (zend_class_entry->ce_flags of internal classes must not be modified, because internal class enties are shared between threads)
8 years ago
Nikita Popov
2543e61aed
Fixed bug #76509
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.
8 years ago
Dmitry Stogov
73b675a988
Avoid duplication of "shadow" property_info
8 years ago
Dmitry Stogov
5eb1f92f31
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
8 years ago
Dmitry Stogov
524f5245c5
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
8 years ago
Nikita Popov
b4dff68379
Remove no longer necessary type-name special cases
zend_get_type_by_name() now produces the correct value by itself,
so we no longer need these workarounds.
8 years ago
Gabriel Caruso
6400264856
Trailing whitespaces
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
8 years ago
Xinchen Hui
a6519d0514
year++
8 years ago
Xinchen Hui
7a7ec01a49
year++
8 years ago
Xinchen Hui
ccd4716ec7
year++
8 years ago
Dmitry Stogov
efcbea4345
Cheaper reference construction
8 years ago
Pedro Magalhães
83964e0468
Fix #75607 - Check if existing static trait property is a ref before comparing
8 years ago
Dmitry Stogov
ec2dde0c0b
Introduced zend_hash_find_ex() that may avoid unnecessary hash value check.
8 years ago
Pedro Magalhães
179ed6e43d
63911: Compare opcodes of the op_array to determine different functions
8 years ago
Anatol Belski
80d6eb6806
Fix unsigned comparisons and remove dead code
Fix unsigned comparison
Cleanup never executed block
Fix unsigned comparison
Fix unsigned comparison, diff can't be < 0
Fix unsigned comparison
Fix unsigned comparison
Remove dead code
8 years ago
Dmitry Stogov
ccc12b82da
Avoid unnecessary reference-counting on strings.
8 years ago
Pedro Magalhães
897bdb42f0
Fix #74922 - Try to resolve constants when importing trait properties
8 years ago
Xinchen Hui
a8a17a72b0
RC manipulation cleanup
8 years ago
Dmitry Stogov
8482a6f511
Fixed use-after free introduced in fcc08ce19f
8 years ago