X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_url_api.h;h=84ee4141c316cdbca44fa8e92f689a6595c7c185;hp=fbb4ae1c991b020c74bda4a67975a1c532d88e44;hb=878af6cf27f64a1979100ecb0d74e4c972da13d8;hpb=5773d11d8c9c28fb8b0e3389258f548fc4717892 diff --git a/php_http_url_api.h b/php_http_url_api.h index fbb4ae1..84ee414 100644 --- a/php_http_url_api.h +++ b/php_http_url_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2006, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -27,7 +27,7 @@ PHP_HTTP_API char *_http_absolute_url(const char *url TSRMLS_DC); #define HTTP_URL_JOIN_QUERY 0x002 #define HTTP_URL_STRIP_USER 0x004 #define HTTP_URL_STRIP_PASS 0x008 -#define HTTP_URL_STRIP_AUTH 0x010 +#define HTTP_URL_STRIP_AUTH (HTTP_URL_STRIP_USER|HTTP_URL_STRIP_PASS) #define HTTP_URL_STRIP_PORT 0x020 #define HTTP_URL_STRIP_PATH 0x040 #define HTTP_URL_STRIP_QUERY 0x080 @@ -108,8 +108,7 @@ static inline HashTable *_http_url_tostruct(php_url *url, zval *strct TSRMLS_DC) zval arr; if (strct) { - switch (Z_TYPE_P(strct)) - { + switch (Z_TYPE_P(strct)) { default: zval_dtor(strct); array_init(strct);