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 | ea1447c3ce5f6f6895143aa93e2b0c7dfa3e5618 (patch) | |
| tree | f72b3c86543ef71367998d20d629b4e3b28e01fc /Zend/zend_builtin_functions.c | |
| parent | 03bec4299f4eaa53bf4e389996ddb2404ba82be7 (diff) | |
| download | php-git-ea1447c3ce5f6f6895143aa93e2b0c7dfa3e5618.tar.gz | |
- Fixed bug #50810 (property_exists does not work for private)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -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 a001c6c7e5..4c96e19975 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -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;  	} | 
