php-mod / curl

This library provides an object-oriented and dependency free wrapper of the PHP cURL extension.
MIT License
328 stars 120 forks source link

Memory overflow #65

Closed gsons closed 2 years ago

gsons commented 5 years ago

when i run it on php cli mode,Memory overflow ! because the object method \Curl\Curl::__destruct()never run. i have to call method \CurlCurl::_close() on every curl request.

nadar commented 2 years ago

Maybe use unset($curl) (or what ever name your object has) in order to force destruct.

nadar commented 1 year ago

dear @gsons, it seems a valid concern, @patrickcarlohickman did a brilliant research see #95.