Lines Matching refs:index
29 $index = mt_rand(0, $num);
30 } while (!isset($connections[$index]));
31 mysqli_close($connections[$index]);
32 unset($connections[$index]);
47 $index = mt_rand(0, $num);
48 } while (!isset($connections[$index]) && $left > 0);
51 mysqli_close($connections[$index]);
52 unset($connections[$index]);
55 if (!$connections[$index] = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
63 $index = mt_rand(0, $num);
64 } while (!isset($connections[$index]));
65 mysqli_close($connections[$index]);
66 unset($connections[$index]);