cvs: php4(PHP_4_3) /ext/standard array.c
| From: | Sara Golemon | Date: | Fri, 02 May 2003 01:05:16 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20642@lists.php.net to get a copy of this message | ||
pollita Thu May 1 21:05:16 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard array.c
Log:
MFH(r-1.227)
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.199.2.17 php4/ext/standard/array.c:1.199.2.18
--- php4/ext/standard/array.c:1.199.2.17 Tue Apr 22 22:37:29 2003
+++ php4/ext/standard/array.c Thu May 1 21:05:16 2003
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.199.2.17 2003/04/23 02:37:29 iliaa Exp $ */
+/* $Id: array.c,v 1.199.2.18 2003/05/02 01:05:16 pollita Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -1436,10 +1436,16 @@
if (low>high) {
for (; low >= high; (low)--) {
add_next_index_stringl(return_value, (char *)&low, 1, 1);
+ if ((int)low == 0) {
+ break;
+ }
}
} else {
for (; low <= high; (low)++) {
add_next_index_stringl(return_value, (char *)&low, 1, 1);
+ if ((int)low == 255) {
+ break;
+ }
}
}
} else {