projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* that should do the trick
[m6w6/ext-http]
/
http.c
diff --git
a/http.c
b/http.c
index c72b510d5b63a90a01f8ec76b9dad8b23edcc7ef..e0f61fc893f027a1525a185a5e81444e5180da1b 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-384,7
+384,7
@@
static void php_http_init_globals(zend_http_globals *http_globals)
http_globals->etag = NULL;
http_globals->lmod = 0;
#ifdef HTTP_HAVE_CURL
http_globals->etag = NULL;
http_globals->lmod = 0;
#ifdef HTTP_HAVE_CURL
-
//phpstr_init_ex(&http_globals->curlbuf, HTTP_CURLBUF_SIZE, 1
);
+
phpstr_init_ex(&http_globals->curlbuf, HTTP_CURLBUF_SIZE, 0
);
zend_llist_init(&http_globals->to_free, sizeof(char *), free_to_free, 0);
#endif
http_globals->allowed_methods = NULL;
zend_llist_init(&http_globals->to_free, sizeof(char *), free_to_free, 0);
#endif
http_globals->allowed_methods = NULL;
@@
-485,7
+485,7
@@
PHP_MSHUTDOWN_FUNCTION(http)
{
UNREGISTER_INI_ENTRIES();
#ifdef HTTP_HAVE_CURL
{
UNREGISTER_INI_ENTRIES();
#ifdef HTTP_HAVE_CURL
-
//phpstr_free
(&HTTP_G(curlbuf));
+
phpstr_dtor
(&HTTP_G(curlbuf));
curl_global_cleanup();
#endif
return SUCCESS;
curl_global_cleanup();
#endif
return SUCCESS;
@@
-518,7
+518,7
@@
PHP_RSHUTDOWN_FUNCTION(http)
}
#ifdef HTTP_HAVE_CURL
}
#ifdef HTTP_HAVE_CURL
-
//phpstr_free
(&HTTP_G(curlbuf));
+
phpstr_dtor
(&HTTP_G(curlbuf));
#endif
return SUCCESS;
#endif
return SUCCESS;