helly Sun Jul 9 23:28:59 2006 UTC Modified files: /php-src/ext/reflection php_reflection.c Log: - Fix logic http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.240&r2=1.241&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.240 php-src/ext/reflection/php_reflection.c:1.241 --- php-src/ext/reflection/php_reflection.c:1.240 Fri Jul 7 11:53:54 2006 +++ php-src/ext/reflection/php_reflection.c Sun Jul 9 23:28:59 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.240 2006/07/07 11:53:54 bjori Exp $ */ +/* $Id: php_reflection.c,v 1.241 2006/07/09 23:28:59 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -3960,7 +3960,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 */ } @@ -4832,7 +4832,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.240 2006/07/07 11:53:54 bjori Exp $"); + php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.241 2006/07/09 23:28:59 helly Exp $"); php_info_print_table_end(); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php