The Note You're Voting On
gmail@asmqb7 ¶8 years ago
WARNING WARNING
In this example: http://php.net/manual/en/book.curl.php#102885 by "frank at interactinet dot com"
There's a small bug in
<?php
...
elseif($status == $httpCode)
{
return TRUE;
}
return FALSE;
pcntl_wait($status); } else {
while(microtime(true) < $expire)
...
?>
The code will immediately leave the function at the `return`, and pcntl_wait() will NEVER be executed, under any circumstances.
I can't see any other issues with this function however.