1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

MFH(r-1.227)

This commit is contained in:
Sara Golemon
2003-05-02 01:05:16 +00:00
parent c0b58291d2
commit 631112ec2f
+6
View File
@@ -1436,10 +1436,16 @@ PHP_FUNCTION(range)
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 {