CS fix and comments with bug ID

This commit is contained in:
Stanislav Malyshev 2016-07-12 21:35:02 -07:00
parent 98b9dfaec9
commit aca4f65c7e
2 changed files with 4 additions and 3 deletions

View file

@ -1012,7 +1012,7 @@ SAPI_API struct stat *sapi_get_stat(TSRMLS_D)
SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
{
if (!strncasecmp(name, "HTTP_PROXY", name_len)) {
/* Ugly fix for HTTP_PROXY issue */
/* Ugly fix for HTTP_PROXY issue, see bug #72573 */
return NULL;
}
if (sapi_module.getenv) {

View file

@ -722,8 +722,9 @@ static zend_bool php_auto_globals_create_files(const char *name, uint name_len T
return 0; /* don't rearm */
}
/* Upgly hack to fix HTTP_PROXY issue */
static void check_http_proxy(HashTable *var_table) {
/* Upgly hack to fix HTTP_PROXY issue, see bug #72573 */
static void check_http_proxy(HashTable *var_table)
{
if (zend_hash_exists(var_table, "HTTP_PROXY", sizeof("HTTP_PROXY"))) {
char *local_proxy = getenv("HTTP_PROXY");