rendered paste body### Eclipse Workspace Patch 1.0
#P php5-cvs
Index: ext/standard/var.c
===================================================================
RCS file: /repository/php-src/ext/standard/var.c,v
retrieving revision 1.203.2.7.2.14
diff -u -r1.203.2.7.2.14 var.c
--- ext/standard/var.c 1 Jan 2007 09:36:09 -0000 1.203.2.7.2.14
+++ ext/standard/var.c 13 Feb 2007 16:10:28 -0000
@@ -51,12 +51,6 @@
if (hash_key->nKeyLength==0) { /* numeric key */
php_printf("%*c[%ld]=>\n", level + 1, ' ', hash_key->h);
} else { /* string key */
- if (va_arg(args, int) && hash_key->arKey[0] == '\0') {
- /* XXX: perhaps when we are inside the class we should permit access to
- * private & protected values
- */
- return 0;
- }
php_printf("%*c[\"", level + 1, ' ');
PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1);
php_printf("\"]=>\n");
@@ -149,7 +143,7 @@
php_element_dump_func = php_object_property_dump;
head_done:
if (myht) {
- zend_hash_apply_with_arguments(myht, (apply_func_args_t) php_element_dump_func, 1, level, (Z_TYPE_PP(struc) == IS_ARRAY ? 0 : 1));
+ zend_hash_apply_with_arguments(myht, (apply_func_args_t) php_element_dump_func, 1, level);
}
if (level > 1) {
php_printf("%*c", level-1, ' ');