version 1.1.1.1, 2012/02/21 23:48:02
|
version 1.1.1.2, 2012/05/29 12:34:43
|
Line 132 php_stream *php_stream_url_wrap_http_ex(php_stream_wra
|
Line 132 php_stream *php_stream_url_wrap_http_ex(php_stream_wra
|
Z_TYPE_PP(tmpzval) != IS_STRING || |
Z_TYPE_PP(tmpzval) != IS_STRING || |
Z_STRLEN_PP(tmpzval) <= 0) { |
Z_STRLEN_PP(tmpzval) <= 0) { |
php_url_free(resource); |
php_url_free(resource); |
return php_stream_open_wrapper_ex(path, mode, ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); | return php_stream_open_wrapper_ex(path, mode, REPORT_ERRORS, NULL, context); |
} |
} |
/* Called from a non-http wrapper with http proxying requested (i.e. ftp) */ |
/* Called from a non-http wrapper with http proxying requested (i.e. ftp) */ |
request_fulluri = 1; |
request_fulluri = 1; |
Line 543 finish:
|
Line 543 finish:
|
} |
} |
|
|
/* if the user has configured who they are, send a From: line */ |
/* if the user has configured who they are, send a From: line */ |
{ | if (((have_header & HTTP_HEADER_FROM) == 0) && FG(from_address)) { |
char *from_address = php_ini_string("from", sizeof("from"), 0); | if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) |
if (((have_header & HTTP_HEADER_FROM) == 0) && from_address && from_address[0] != '\0') { | php_stream_write(stream, scratch, strlen(scratch)); |
if (snprintf(scratch, scratch_len, "From: %s\r\n", from_address) > 0) | |
php_stream_write(stream, scratch, strlen(scratch)); | |
} | |
} |
} |
|
|
/* Send Host: header so name-based virtual hosts work */ |
/* Send Host: header so name-based virtual hosts work */ |