All pastes #1077574 Raw Edit

rewbs

public diff v1 · immutable
#1077574 ·published 2008-07-20 15:37 UTC
rendered paste body
Index: php_reflection.c===================================================================RCS file: /repository/php-src/ext/reflection/php_reflection.c,vretrieving revision 1.164.2.33.2.45.2.19diff -u -w -p -r1.164.2.33.2.45.2.19 php_reflection.c--- php_reflection.c	14 Jul 2008 09:49:03 -0000	1.164.2.33.2.45.2.19+++ php_reflection.c	20 Jul 2008 15:32:03 -0000@@ -426,7 +426,8 @@ static void _class_string(string *str, z 			zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos);  			while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) {-				if (mptr->common.fn_flags & ZEND_ACC_STATIC) {+				if (mptr->common.fn_flags & ZEND_ACC_STATIC+						&& ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) { 					count_static_funcs++; 				} 				zend_hash_move_forward_ex(&ce->function_table, &pos);@@ -442,7 +443,8 @@ static void _class_string(string *str, z 			zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos);  			while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) {-				if (mptr->common.fn_flags & ZEND_ACC_STATIC) {+				if (mptr->common.fn_flags & ZEND_ACC_STATIC+						&& ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) { 					string_printf(str, "\n"); 					_function_string(str, mptr, ce, sub_indent.string TSRMLS_CC); 				}