iliaa           Fri Feb 16 03:41:56 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/standard       var.c 
    /php-src    NEWS 
  Log:
  
  Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump).
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/var.c?r1=1.203.2.7.2.14&r2=1.203.2.7.2.15&diff_format=u
Index: php-src/ext/standard/var.c
diff -u php-src/ext/standard/var.c:1.203.2.7.2.14 
php-src/ext/standard/var.c:1.203.2.7.2.15
--- php-src/ext/standard/var.c:1.203.2.7.2.14   Mon Jan  1 09:36:09 2007
+++ php-src/ext/standard/var.c  Fri Feb 16 03:41:56 2007
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: var.c,v 1.203.2.7.2.14 2007/01/01 09:36:09 sebastian Exp $ */
+/* $Id: var.c,v 1.203.2.7.2.15 2007/02/16 03:41:56 iliaa Exp $ */
 
 
 
@@ -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, ' ');
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.542&r2=1.2027.2.547.2.543&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.542 php-src/NEWS:1.2027.2.547.2.543
--- php-src/NEWS:1.2027.2.547.2.542     Thu Feb 15 14:48:12 2007
+++ php-src/NEWS        Fri Feb 16 03:41:56 2007
@@ -7,6 +7,8 @@
 - Added tidyNode::getParent() method (John, Nuno)
 - Fixed bug #40467 (Partial SOAP request sent when XSD sequence or choice
   include minOccurs=0). (Dmitry) 
+- Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump).
+  (wharmby at uk dot ibm dot com, Ilia)
 - Fixed bug #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir 
   is set). (Tony)
 - Fixed bug #40432 (strip_tags() fails with greater than in attribute). (Ilia)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to