Call to undefined function GuzzleHttpHandlercurl_multi_exec() [on hold]
I changed the server and have problem with guzzle
Call to undefined function GuzzleHttpHandlercurl_multi_exec()
code:
public function AsyncSearchArticle($articles)
{
$curl = new CurlMultiHandler();
$handler = HandlerStack::create($curl);
$factory = new Factory();
$client = $factory->create(new Client(['handler' => $handler]), self::SEARCHURL);
$promises = [];
foreach($articles as $article){
$param = [
'UserId' => $this->userid,
'Article' => $article->part_number
];
$promises[] = $this->call_async($client, 'SearchArticle', $param);
}
foreach($promises as $promise) {
while($promise->getState() === "pending") {
$curl->tick();
}
}
$results = Promisesettle($promises)->wait();
return $results;
}
from Laravel Questions and Answers https://laravelquestions.com/php/call-to-undefined-function-guzzlehttphandlercurl_multi_exec-on-hold/
via Lzo Media
No comments:
Post a Comment