add support to php5 curl