]> granicus.if.org Git - php/commitdiff
- Show classname very needed
authorMarcus Boerger <helly@php.net>
Sun, 14 Aug 2005 15:08:38 +0000 (15:08 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 14 Aug 2005 15:08:38 +0000 (15:08 +0000)
- No 3rd " which doesn't help parsing
# Does the class name need to be printed as u"<name>" ?

ext/standard/var.c

index 8d7c6eb25e2e023a319e9a8fe316942098b26bb8..3e8b28c9f2b362f135c575b6878d832d8c8e4592 100644 (file)
@@ -163,7 +163,7 @@ static int php_object_property_dump(zval **zv, int num_args, va_list args, zend_
                        if (class_name[0]=='*') {
                                ZEND_PUTS(":protected");
                        } else {
-                               ZEND_PUTS(":private");
+                               php_printf(":%s:private", class_name);
                        }
                } else {
                        if (hash_key->type == IS_STRING) {
@@ -173,9 +173,8 @@ static int php_object_property_dump(zval **zv, int num_args, va_list args, zend_
                                php_printf("u");
                                php_var_dump_unicode(hash_key->u.unicode, hash_key->nKeyLength-1, verbose TSRMLS_CC);
                        }
-                       ZEND_PUTS(":public");
                }
-               ZEND_PUTS("\"]=>\n");
+               ZEND_PUTS("]=>\n");
        }
        php_var_dump(zv, level + 2, verbose TSRMLS_CC);
        return 0;