X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=fdee36d80bfcec98c42fa38e7b4da2c7e76fb147;hp=e74c18d60e4767c96d76a2263de5534a1ef750b0;hb=ad5f896b03adaa073134a00108a9cdf00720673a;hpb=5ba379899fb1e05ede73674dc010ce8846e051c2 diff --git a/php_http_api.h b/php_http_api.h index e74c18d..fdee36d 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2007, Michael Wallner | + | Copyright (c) 2004-2010, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -111,23 +111,6 @@ extern STATUS _http_object_new(zend_object_value *ov, const char *cname_str, uin action; \ } -#define HTTP_CHECK_OPEN_BASEDIR(file, act) \ - if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) \ - { \ - const char *tmp = file; \ - \ - if (!strncasecmp(tmp, "file:", lenof("file:"))) { \ - tmp += lenof("file:"); \ - while ((tmp - (const char *)file < 7) && (*tmp == '/' || *tmp == '\\')) ++tmp; \ - } \ - \ - if ( (tmp != file || !strstr(file, "://")) && \ - (!*tmp || php_check_open_basedir(tmp TSRMLS_CC) || \ - (PG(safe_mode) && !php_checkuid(tmp, "rb+", CHECKUID_CHECK_MODE_PARAM)))) { \ - act; \ - } \ - } - #define http_log(f, i, m) _http_log_ex((f), (i), (m) TSRMLS_CC) extern void _http_log_ex(char *file, const char *ident, const char *message TSRMLS_DC);