mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Squashed commit of the following:
commit2d3cac9e00
Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:54:47 2018 +0300 Fixed static property access commit31786ee272
Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:05:29 2018 +0300 Avoid duplicate checks commit5ae502b979
Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 10:39:17 2018 +0300 Optimization commit82c17f0e8a
Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:26:50 2018 +0300 Removed unused zend_duplicate_property_info() commitba53d1d0dd
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 commiteacc11b8fd
Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 13:12:39 2018 +0300 Fixed failure of ext/spl/tests/array_017.phpt commit62d1871430
Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 11:55:07 2018 +0300 Fixed issues commit1d37e3a40e
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 commitd6c3f098b6
Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Sep 7 13:56:30 2018 +0300 Get rid of ZEND_ACC_SHADOW
This commit is contained in:
parent
c4b14370cf
commit
3a249e769b
9 changed files with 190 additions and 167 deletions
|
@ -1097,13 +1097,10 @@ static void add_class_vars(zend_class_entry *scope, zend_class_entry *ce, int st
|
|||
zend_string *key;
|
||||
|
||||
ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->properties_info, key, prop_info) {
|
||||
if (((prop_info->flags & ZEND_ACC_SHADOW) &&
|
||||
prop_info->ce != scope) ||
|
||||
((prop_info->flags & ZEND_ACC_PROTECTED) &&
|
||||
if (((prop_info->flags & ZEND_ACC_PROTECTED) &&
|
||||
!zend_check_protected(prop_info->ce, scope)) ||
|
||||
((prop_info->flags & ZEND_ACC_PRIVATE) &&
|
||||
ce != scope &&
|
||||
prop_info->ce != scope)) {
|
||||
prop_info->ce != scope)) {
|
||||
continue;
|
||||
}
|
||||
prop = NULL;
|
||||
|
@ -1403,8 +1400,10 @@ ZEND_FUNCTION(property_exists)
|
|||
RETURN_NULL();
|
||||
}
|
||||
|
||||
if ((property_info = zend_hash_find_ptr(&ce->properties_info, property)) != NULL
|
||||
&& (property_info->flags & ZEND_ACC_SHADOW) == 0) {
|
||||
property_info = zend_hash_find_ptr(&ce->properties_info, property);
|
||||
if (property_info != NULL
|
||||
&& (!(property_info->flags & ZEND_ACC_PRIVATE)
|
||||
|| property_info->ce == ce)) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue