Call to undefined function GuzzleHttpHandlercurl_multi_exec() [on hold] - development

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

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome