mattwil Mon Jun 2 11:20:17 2008 UTC Modified files: /php-src/ext/standard array.c Log: Initialize with length instead of 0 (and thanks Antony for finding) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.453&r2=1.454&diff_format=u Index: php-src/ext/standard/array.c diff -u php-src/ext/standard/array.c:1.453 php-src/ext/standard/array.c:1.454 --- php-src/ext/standard/array.c:1.453 Mon Jun 2 10:27:42 2008 +++ php-src/ext/standard/array.c Mon Jun 2 11:20:17 2008 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.453 2008/06/02 10:27:42 tony2001 Exp $ */ +/* $Id: array.c,v 1.454 2008/06/02 11:20:17 mattwil Exp $ */ #include "php.h" #include "php_ini.h" @@ -2298,7 +2298,7 @@ /* Don't create the array of removed elements if it's not going * to be used; e.g. only removing and/or replacing elements */ if (return_value_used) { - int size = 0; + int size = length; /* Clamp the offset.. */ if (offset > num_in) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php