mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
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.
This commit is contained in:
parent
c8ffb0ba59
commit
deff917851
@ -277,6 +277,27 @@ sapi_nsapi_register_server_variables(zval *track_vars_array ELS_DC SLS_DC PLS_DC
|
||||
}
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user