felipe          Fri Oct 24 10:27:54 2008 UTC

  Modified files:              
    /php-src/ext/standard       var.c 
  Log:
  - Removed unnecessary check for array (#46273, noticed by serovov at gmail 
dot com)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/var.c?r1=1.277&r2=1.278&diff_format=u
Index: php-src/ext/standard/var.c
diff -u php-src/ext/standard/var.c:1.277 php-src/ext/standard/var.c:1.278
--- php-src/ext/standard/var.c:1.277    Tue Aug 19 02:51:27 2008
+++ php-src/ext/standard/var.c  Fri Oct 24 10:27:54 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: var.c,v 1.277 2008/08/19 02:51:27 felipe Exp $ */
+/* $Id: var.c,v 1.278 2008/10/24 10:27:54 felipe Exp $ */
 
 /* {{{ includes
 */
@@ -604,7 +604,7 @@
                        php_printf("\n%*c", level - 1, ' ');
                }
                PUTS ("array (\n");
-               zend_hash_apply_with_arguments(myht TSRMLS_CC, 
(apply_func_args_t) php_array_element_export, 1, level, (Z_TYPE_PP(struc) == 
IS_ARRAY ? 0 : 1));
+               zend_hash_apply_with_arguments(myht TSRMLS_CC, 
(apply_func_args_t) php_array_element_export, 1, level, 0);
                if (level > 1) {
                        php_printf("%*c", level - 1, ' ');
                }



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

Reply via email to