* typo
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 991e84e8fc031ff4c30fb487cf0f8bee8f051739..3902443bde951d6a5d8e861079c6947cdf55e90f 100644 (file)
--- a/http.c
+++ b/http.c
 
 #include "php_http.h"
 #include "php_http_std_defs.h"
-
 #include "php_http_send_api.h"
 
-#include "php_http_util_object.h"
-#include "php_http_message_object.h"
-#include "php_http_response_object.h"
-#include "php_http_request_object.h"
+#ifdef ZEND_ENGINE_2
+#      include "php_http_util_object.h"
+#      include "php_http_message_object.h"
+#      include "php_http_response_object.h"
+#      ifdef HTTP_HAVE_CURL
+#              include "php_http_request_object.h"
+#      endif
+#      include "php_http_exception_object.h"
+#endif
 
 #include "phpstr/phpstr.h"
 
@@ -230,6 +234,7 @@ PHP_MINIT_FUNCTION(http)
 #      ifdef HTTP_HAVE_CURL
        http_request_object_init(INIT_FUNC_ARGS_PASSTHRU);
 #      endif /* HTTP_HAVE_CURL */
+       http_exception_object_init(INIT_FUNC_ARGS_PASSTHRU);
 #endif /* ZEND_ENGINE_2 */
 
        return SUCCESS;