diff options
author | Felipe Pena <felipe@php.net> | 2010-03-07 00:49:34 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-03-07 00:49:34 +0000 |
commit | dffc5b7728d9102346284be4873a6eb9cf253a62 (patch) | |
tree | 0e78a094ed79b4ce245f40953340e501ba254061 | |
parent | 1c76de1b47f01029fd52cf9e766cd34a8e0776aa (diff) | |
download | php-git-dffc5b7728d9102346284be4873a6eb9cf253a62.tar.gz |
- Fixed bug #50810 (property_exists does not work for private)
-rw-r--r-- | Zend/zend_builtin_functions.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index cb0265dc1e..2479cdcbb3 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1155,10 +1155,8 @@ ZEND_FUNCTION(property_exists) } h = zend_u_get_hash_value(property_type, property, property_len+1); - if (zend_u_hash_quick_find(&ce->properties_info, property_type, property, property_len+1, h, (void **) &property_info) == SUCCESS) { - if (property_info->flags & ZEND_ACC_SHADOW) { - RETURN_FALSE; - } + if (zend_u_hash_quick_find(&ce->properties_info, property_type, property, property_len+1, h, (void **) &property_info) == SUCCESS + && (property_info->flags & ZEND_ACC_SHADOW) == 0) { RETURN_TRUE; } |