mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
W/S tabs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@294403 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d3188226ed
commit
735a959f84
1 changed files with 14 additions and 14 deletions
|
@ -97,20 +97,20 @@ $link1->query("SELECT 'test'", MYSQLI_ASYNC);
|
|||
$all_links = array($link1);
|
||||
$processed = 0;
|
||||
do {
|
||||
$links = $errors = $reject = array();
|
||||
foreach ($all_links as $link) {
|
||||
$links[] = $errors[] = $reject[] = $link;
|
||||
}
|
||||
if (!mysqli_poll($links, $errors, $reject, 1)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($links as $link) {
|
||||
if ($result = $link->reap_async_query()) {
|
||||
print_r($result->fetch_row());
|
||||
mysqli_free_result($result);
|
||||
$processed++;
|
||||
}
|
||||
}
|
||||
$links = $errors = $reject = array();
|
||||
foreach ($all_links as $link) {
|
||||
$links[] = $errors[] = $reject[] = $link;
|
||||
}
|
||||
if (!mysqli_poll($links, $errors, $reject, 1)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($links as $link) {
|
||||
if ($result = $link->reap_async_query()) {
|
||||
print_r($result->fetch_row());
|
||||
mysqli_free_result($result);
|
||||
$processed++;
|
||||
}
|
||||
}
|
||||
} while ($processed < count($all_links));
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue