diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-10-26 18:47:10 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-10-26 18:47:10 +0000 |
commit | b5b4f94a4cc3fbe9ce5200a8719826a12926d5fe (patch) | |
tree | 71e793a7768c404e7d621cfcf00f2c9271ba5feb /ext/reflection/php_reflection.c | |
parent | 0086bc8a96607d33f08e832282576dd62a152aae (diff) | |
download | php-git-b5b4f94a4cc3fbe9ce5200a8719826a12926d5fe.tar.gz |
- Fixed ReflectionProperty::isDefault() giving a wrong result for properties
obtained with ReflectionClass::getProperties().
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7216400827..7b130f8fd3 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3660,6 +3660,7 @@ static int _adddynproperty(zval **pptr TSRMLS_DC, int num_args, va_list args, ze ZVAL_STRINGL(&member, hash_key->arKey, hash_key->nKeyLength-1, 0); if (zend_get_property_info(ce, &member, 1 TSRMLS_CC) == &EG(std_property_info)) { MAKE_STD_ZVAL(property); + EG(std_property_info).flags = ZEND_ACC_IMPLICIT_PUBLIC; reflection_property_factory(ce, &EG(std_property_info), property TSRMLS_CC); add_next_index_zval(retval, property); } |