summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-09-13 20:03:56 +0000
committerAndi Gutmans <andi@php.net>1999-09-13 20:03:56 +0000
commit331221eec6000c8ced6163a1b241cb218f9c7ab9 (patch)
tree3409cb04e26c8757a61cb49ed42c9322fbba8114
parent809198b9162cbef4af420e5ae3e74b3c3adcc3f3 (diff)
downloadphp-git-331221eec6000c8ced6163a1b241cb218f9c7ab9.tar.gz
- X-* is probably more standard.
-rw-r--r--main/SAPI.h2
-rw-r--r--output.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index fa9b0c6eab..95d82a8747 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -151,7 +151,7 @@ struct _sapi_module_struct {
#define SAPI_HEADER_SEND_FAILED 3
#define SAPI_DEFAULT_CONTENT_TYPE "Content-Type: text/html"
-#define SAPI_PHP_VERSION_HEADER "PHP-Version: " PHP_VERSION
+#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION
#define SAPI_POST_READER_FUNC(post_reader) void post_reader(char *content_type_dup SLS_DC)
diff --git a/output.c b/output.c
index c64742bfd5..a748ed5cbb 100644
--- a/output.c
+++ b/output.c
@@ -185,7 +185,7 @@ static int php_b_body_write(const char *str, uint str_length)
static int php_ub_body_write_no_header(const char *str, uint str_length)
{
char *newstr = NULL;
- uint new_length;
+ uint new_length=0;
int result;
session_adapt_uris(str, str_length, &newstr, &new_length);