[PHP4BETA] CVS update: php4
| From: | zeev | Date: | Fri, 21 May 1999 23:25:46 +0000 |
| Subject: | [PHP4BETA] CVS update: php4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-981@lists.php.net to get a copy of this message | ||
Date: Friday May 21, 1999 @ 19:25
Author: zeev
Update of /repository/php4
In directory php:/tmp/cvs-serv12372
Modified Files:
SAPI.c cgi_main.c
Log Message:
This should be centralized...
Index: php4/SAPI.c
diff -u php4/SAPI.c:1.18 php4/SAPI.c:1.19
--- php4/SAPI.c:1.18 Wed May 12 17:35:15 1999
+++ php4/SAPI.c Fri May 21 19:25:46 1999
@@ -102,6 +102,11 @@
}
SG(request_info).cookie_data = sapi_module.read_cookies(SLS_C);
}
+ if (SG(request_info).request_method && !strcmp(SG(request_info).request_method,
"HEAD")) {
+ SG(request_info).headers_only = 1;
+ } else {
+ SG(request_info).headers_only = 0;
+ }
}
Index: php4/cgi_main.c
diff -u php4/cgi_main.c:1.14 php4/cgi_main.c:1.15
--- php4/cgi_main.c:1.14 Fri May 21 15:22:17 1999
+++ php4/cgi_main.c Fri May 21 19:25:46 1999
@@ -163,11 +163,6 @@
SG(request_info).query_string = getenv("QUERY_STRING");
SG(request_info).request_uri = getenv("PATH_INFO");
SG(request_info).path_translated = NULL; /* we have to update it later, when we have that
information */
- if (SG(request_info).request_method && !strcmp(SG(request_info).request_method,
"HEAD")) {
- SG(request_info).headers_only = 1;
- } else {
- SG(request_info).headers_only = 0;
- }
SG(request_info).content_type = getenv("CONTENT_TYPE");
SG(request_info).content_length = (content_length?atoi(content_length):0);
--
PHP 4 Beta