* try the direct way
[m6w6/ext-http] / http_curl_api.c
index 371f39fb3b0832bd7ddd1b537f48222a37d31d9a..f1ec92c96c2ba2ac0e11e6535b511ceb5c75c611 100644 (file)
 #include "php_http_curl_api.h"
 #include "php_http_std_defs.h"
 
-#ifdef ZEND_ENGINE_2
-#      include "ext/standard/php_http.h"
-#endif
-
 #include "phpstr/phpstr.h"
 
 ZEND_DECLARE_MODULE_GLOBALS(http)
@@ -72,7 +68,7 @@ ZEND_DECLARE_MODULE_GLOBALS(http)
        }
 
 #define http_curl_cleanup(ch, clean_curl) \
-       phpstr_free(&HTTP_G(curlbuf)); \
+       phpstr_dtor(&HTTP_G(curlbuf)); \
        zend_llist_clean(&HTTP_G(to_free)); \
        if (clean_curl) { \
                curl_easy_cleanup(ch); \
@@ -298,7 +294,7 @@ static void _http_curl_setopts(CURL *ch, const char *url, HashTable *options TSR
                        phpstr_fix(qstr);
                        curl_easy_setopt(ch, CURLOPT_COOKIE, http_curl_copystr(qstr->data));
                }
-               phpstr_dtor(qstr);
+               phpstr_free(qstr);
        }
 
        /* cookiestore */
@@ -512,7 +508,7 @@ PHP_HTTP_API STATUS _http_post_array_ex(CURL *ch, const char *URL, HashTable *po
 
        status = http_post_data_ex(ch, URL, encoded, encoded_len, options, info, data, data_len);
        efree(encoded);
-       
+
        return status;
 }
 /* }}} */
@@ -548,4 +544,3 @@ PHP_HTTP_API STATUS _http_post_curldata_ex(CURL *ch, const char *URL,
  * vim600: noet sw=4 ts=4 fdm=marker
  * vim<600: noet sw=4 ts=4
  */
-