FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

Call to undefined function curl_reset() php 5.4 #324

Closed lycenok closed 6 years ago

lycenok commented 6 years ago

I didn't want to risk and install 5.6 on production so I temporarily worked around this in

vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php

        // curl_reset($resource);
        // Not working in PHP 5.4
        $resource = curl_init(); // For PHP 5.4 Lycenok 

used this link https://stackoverflow.com/questions/25523004/fatal-error-curl-reset-undefined-why

stof commented 6 years ago

Well, you cannot use the curl factory of Guzzle if you don't have the curl extension installed on your system.

stof commented 6 years ago

oh, and the latest version of Goutte does not support PHP 5.4 at all.