mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
- Fixed bug #50810 (property_exists does not work for private)
This commit is contained in:
parent
03bec4299f
commit
ea1447c3ce
1
NEWS
1
NEWS
@ -19,6 +19,7 @@ PHP NEWS
|
||||
- Fixed bug #51023 (filter doesn't detect int overflows with GCC 4.4).
|
||||
(Raphael Geissert)
|
||||
- Fixed bug #50999 (unaligned memory access in dba_fetch()). (Felipe)
|
||||
- Fixed bug #50810 (property_exists does not work for private). (Felipe)
|
||||
- Fixed bug #50731 (Inconsistent namespaces sent to functions registered with
|
||||
spl_autoload_register). (Felipe)
|
||||
- Fixed bug #50358 (Compile failure compiling ext/phar/util.lo). (Felipe)
|
||||
|
@ -1151,10 +1151,8 @@ ZEND_FUNCTION(property_exists)
|
||||
}
|
||||
|
||||
h = zend_get_hash_value(property, property_len+1);
|
||||
if (zend_hash_quick_find(&ce->properties_info, property, property_len+1, h, (void **) &property_info) == SUCCESS) {
|
||||
if (property_info->flags & ZEND_ACC_SHADOW) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if (zend_hash_quick_find(&ce->properties_info, property, property_len+1, h, (void **) &property_info) == SUCCESS
|
||||
&& (property_info->flags & ZEND_ACC_SHADOW) == 0) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user