diff options
| author | Zeev Suraski <zeev@php.net> | 2000-02-17 20:23:59 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-02-17 20:23:59 +0000 |
| commit | a6393de6f7211ec72c1cdffbc30078fe35ce87c3 (patch) | |
| tree | c065f101d37a1b091657cd7f7f3418126e51f1a6 /main/main.c | |
| parent | 8805f09d87b09e43cef2b33be93dfb004c4a18b1 (diff) | |
| download | php-git-a6393de6f7211ec72c1cdffbc30078fe35ce87c3.tar.gz | |
Make POST handling the way it should be. RFC1867, and any future POST handlers we might
have in the future now obey to the variables_order directive, and there's a real way modular
way to handle POST content.
This is all untested, BEFORE_SAPI_POST_PATCH_17_FEB_2000 tagged before submission
@- Made multipart/form-data content obey to the variables_order directive (Zeev)
Diffstat (limited to 'main/main.c')
| -rw-r--r-- | main/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c index 1478ee7c0e..a2a622763c 100644 --- a/main/main.c +++ b/main/main.c @@ -793,9 +793,7 @@ int php_module_startup(sapi_module_struct *sf) #endif global_lock_init(); - SG(server_context) = NULL; - SG(request_info).request_method = NULL; - SG(request_info).auth_user = SG(request_info).auth_password = NULL; + sapi_initialize_empty_request(SLS_C); sapi_activate(SLS_C); if (module_initialized) { @@ -859,7 +857,7 @@ int php_module_startup(sapi_module_struct *sf) zuv.allow_call_time_pass_reference = PG(allow_call_time_pass_reference); zuv.import_use_extension = ".php"; zend_set_utility_values(&zuv); - php_startup_SAPI_content_types(); + php_startup_sapi_content_types(); REGISTER_MAIN_STRINGL_CONSTANT("PHP_VERSION", PHP_VERSION, sizeof(PHP_VERSION)-1, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_STRINGL_CONSTANT("PHP_OS", php_os, strlen(php_os), CONST_PERSISTENT | CONST_CS); |
