fix curldownloadprogress in PHP5.5