X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_url_api.c;h=64bc6bd08481a2f962ae9e96135e260bbe0394ad;hp=288abe445b1f88067777a33fa3dc90101923f2c1;hb=693d9b2fa7b012575d4cee54b109264b269a3bda;hpb=77b24e0e5f85b64a168a4ea4ce83db9339b1f31b diff --git a/http_url_api.c b/http_url_api.c index 288abe4..64bc6bd 100644 --- a/http_url_api.c +++ b/http_url_api.c @@ -18,21 +18,20 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif - #include "php.h" + +#include "SAPI.h" #include "zend_ini.h" #include "php_output.h" #include "ext/standard/url.h" -#include "SAPI.h" - -#include "phpstr/phpstr.h" - #include "php_http.h" #include "php_http_api.h" #include "php_http_url_api.h" #include "php_http_std_defs.h" +#include "phpstr/phpstr.h" + #ifdef PHP_WIN32 # include #elif defined(HAVE_NETDB_H) @@ -51,7 +50,7 @@ PHP_HTTP_API char *_http_absolute_url_ex( #if defined(PHP_WIN32) || defined(HAVE_NETDB_H) struct servent *se; #endif - php_url *purl, furl = {NULL}; + php_url *purl = NULL, furl; size_t full_len = 0; zval *zhost = NULL; char *scheme = NULL, *uri, *URL = ecalloc(1, HTTP_URI_MAXLEN + 1);