helly Sun Jul 9 23:30:19 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/reflection php_reflection.c Log: - MFH Fix logic http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.33.2.11&r2=1.164.2.33.2.12&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.164.2.33.2.11 php-src/ext/reflection/php_reflection.c:1.164.2.33.2.12 --- php-src/ext/reflection/php_reflection.c:1.164.2.33.2.11 Fri Jul 7 11:55:23 2006 +++ php-src/ext/reflection/php_reflection.c Sun Jul 9 23:30:19 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.164.2.33.2.11 2006/07/07 11:55:23 bjori Exp $ */ +/* $Id: php_reflection.c,v 1.164.2.33.2.12 2006/07/09 23:30:19 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -3889,7 +3889,7 @@ METHOD_NOTSTATIC(reflection_property_ptr); GET_REFLECTION_OBJECT_PTR(ref); - if (ref->prop->flags & ~(ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)) { + if (!(ref->prop->flags & ZEND_ACC_PUBLIC)) { _DO_THROW("Cannot access non-public member"); /* Returns from this function */ } @@ -4764,7 +4764,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Reflection", "enabled"); - php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.33.2.11 2006/07/07 11:55:23 bjori Exp $"); + php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.33.2.12 2006/07/09 23:30:19 helly Exp $"); php_info_print_table_end(); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php