Fixed build with high version libcurl
Fixed clone refcount
Use zend_string for better performance