cvs: php-src(PHP_5_3) /ext/standard array.c

From: Date: Mon, 02 Jun 2008 11:20:59 +0000
Subject: cvs: php-src(PHP_5_3) /ext/standard array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-50248@lists.php.net to get a copy of this message
mattwil Mon Jun 2 11:20:59 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard array.c Log: MFH: Initialize with length instead of 0 http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.308.2.21.2.37.2.33&r2=1.308.2.21.2.37.2.34&diff_format=u Index: php-src/ext/standard/array.c diff -u php-src/ext/standard/array.c:1.308.2.21.2.37.2.33 php-src/ext/standard/array.c:1.308.2.21.2.37.2.34 --- php-src/ext/standard/array.c:1.308.2.21.2.37.2.33 Mon Jun 2 10:27:55 2008 +++ php-src/ext/standard/array.c Mon Jun 2 11:20:59 2008 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.308.2.21.2.37.2.33 2008/06/02 10:27:55 tony2001 Exp $ */ +/* $Id: array.c,v 1.308.2.21.2.37.2.34 2008/06/02 11:20:59 mattwil Exp $ */ #include "php.h" #include "php_ini.h" @@ -2111,7 +2111,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) {

« previous php.cvs (#50248) next »