cvs: php4 /sapi/nsapi/ nsapi.c
| From: | Anthony Whitehead | Date: | Thu, 08 Jun 2000 11:56:36 +0000 |
| Subject: | cvs: php4 /sapi/nsapi/ nsapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87@lists.php.net to get a copy of this message | ||
antw Thu Jun 8 04:56:36 2000 EDT
Modified files:
/php4/sapi/nsapi nsapi.c
Log:
Added more server variables to the HTTP_SERVER_VARS array, all the
variables listed in the structs in nsapi.c should work now. Untested on
Windows platform.
Index: php4/sapi/nsapi/nsapi.c
diff -u php4/sapi/nsapi/nsapi.c:1.6 php4/sapi/nsapi/nsapi.c:1.7
--- php4/sapi/nsapi/nsapi.c:1.6 Mon Jun 5 16:21:58 2000
+++ php4/sapi/nsapi/nsapi.c Thu Jun 8 04:56:36 2000
@@ -277,6 +277,27 @@
}
php_register_variable( (char *)nsapi_reqpb[i].env_var, value, track_vars_array ELS_CC PLS_CC );
}
+
+ for (i = 0; i < nsapi_headers_size; i++) {
+ if ((value = pblock_findval(nsapi_headers[i].nsapi_eq, rc->rq->headers)) == NULL) {
+ value = buf;
+ }
+ php_register_variable( (char *)nsapi_headers[i].env_var, value, track_vars_array ELS_CC PLS_CC );
+ }
+
+ for (i = 0; i < nsapi_vars_size; i++) {
+ if ((value = pblock_findval(nsapi_vars[i].nsapi_eq, rc->rq->vars)) == NULL) {
+ value = buf;
+ }
+ php_register_variable( (char *)nsapi_vars[i].env_var, value, track_vars_array ELS_CC PLS_CC );
+ }
+
+ for (i = 0; i < nsapi_client_size; i++) {
+ if ((value = pblock_findval(nsapi_client[i].nsapi_eq, rc->sn->client)) == NULL) {
+ value = buf;
+ }
+ php_register_variable( (char *)nsapi_client[i].env_var, value, track_vars_array ELS_CC PLS_CC );
+ }
/*
* Special PHP_SELF variable.