- fix endless loop in http_build_url() with urls like "/.foo"
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 899083fcb9b7ee3a6a0631e023ad336f730638fa..41456dc3f8f7ac7d5462f7963c4aab0160f0761d 100644 (file)
--- a/http.c
+++ b/http.c
@@ -171,6 +171,7 @@ static inline void _http_globals_init(zend_http_globals *G TSRMLS_DC)
 #ifndef HTTP_HAVE_SAPI_RTIME
        G->request_time = time(NULL);
 #endif
+       G->read_post_data = 0;
 }
 
 #define http_globals_free(g) _http_globals_free((g) TSRMLS_CC)