Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php	(revision 9137)
+++ wp-includes/formatting.php	(working copy)
@@ -2029,8 +2029,9 @@
 	if ( count($args) == 1 )
 		$result .= $l['between_only_two'] . array_shift($args);
 	// Loop when more than two args
-	while ( count($args) ) {
-		$arg = array_shift($args);
+	$i = count($args);
+	while ( $i ) {
+		$arg = array_shift($args); $i--;
 		if ( $i == 1 )
 			$result .= $l['between_last_two'] . $arg;
 		else
