gopaycommunity / gopay-php-api

GoPay's PHP SDK for Payments REST API
MIT License
81 stars 38 forks source link

GuzzleHttp\Handler\curl_reset() not supported in PHP 5.4 #20

Closed 1uba closed 2 years ago

1uba commented 7 years ago

Fatal error: Call to undefined function GuzzleHttp\Handler\curl_reset() in ...

More details: https://stackoverflow.com/questions/25523004/fatal-error-curl-reset-undefined-why

1uba commented 7 years ago

Temporarily solved by:

if (!function_exists('curl_reset'))
{
    function curl_reset(&$ch)
    {
        $ch = curl_init();
    }
}
FSichinger commented 7 years ago

When does this happen?

Travis tests against 5.4 as well without this kind of error.