#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)
}
#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); \
phpstr_fix(qstr);
curl_easy_setopt(ch, CURLOPT_COOKIE, http_curl_copystr(qstr->data));
}
- phpstr_dtor(qstr);
+ phpstr_free(qstr);
}
/* cookiestore */
status = http_post_data_ex(ch, URL, encoded, encoded_len, options, info, data, data_len);
efree(encoded);
-
+
return status;
}
/* }}} */
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
-