projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- draft: implement curl_multi as HttpRequestPool
[m6w6/ext-http]
/
http.c
diff --git
a/http.c
b/http.c
index a09fa61251c00ef05931b74d512aaf1072636d6c..575fc3c724f2a43d2ec22d9d46a4341bdb6b986e 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-46,6
+46,7
@@
# include "php_http_response_object.h"
# ifdef HTTP_HAVE_CURL
# include "php_http_request_object.h"
# include "php_http_response_object.h"
# ifdef HTTP_HAVE_CURL
# include "php_http_request_object.h"
+# include "php_http_requestpool_object.h"
# endif
# include "php_http_exception_object.h"
#endif
# endif
# include "php_http_exception_object.h"
#endif
@@
-184,6
+185,7
@@
static inline void http_globals_free(zend_http_globals *G)
STR_FREE(G->send.content_type);
STR_FREE(G->send.unquoted_etag);
zend_hash_destroy(&G->request.methods.custom);
STR_FREE(G->send.content_type);
STR_FREE(G->send.unquoted_etag);
zend_hash_destroy(&G->request.methods.custom);
+ zend_llist_clean(&G->request.curl.copies);
}
/* }}} */
}
/* }}} */
@@
-242,6
+244,7
@@
PHP_MINIT_FUNCTION(http)
http_response_object_init();
# ifdef HTTP_HAVE_CURL
http_request_object_init();
http_response_object_init();
# ifdef HTTP_HAVE_CURL
http_request_object_init();
+ http_requestpool_object_init();
# endif /* HTTP_HAVE_CURL */
http_exception_object_init();
#endif /* ZEND_ENGINE_2 */
# endif /* HTTP_HAVE_CURL */
http_exception_object_init();
#endif /* ZEND_ENGINE_2 */