diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-13 17:21:42 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-13 17:21:42 +0000 |
commit | e5d7aef143b375321afb1a30eb5efbdeed8bcdb3 (patch) | |
tree | e1e56377e7cb5b039a41ca7757f5ffbe1488f0b9 | |
parent | 47692de95fb2285e33f91db382db61ce46023638 (diff) | |
download | php-git-e5d7aef143b375321afb1a30eb5efbdeed8bcdb3.tar.gz |
MFH: Make isapi more compatible with apache sapis as far as the creation
$_COOKIE super-global and various $_SERVER values.
-rw-r--r-- | sapi/isapi/php4isapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index b00c5d4c98..00db24f756 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -354,7 +354,7 @@ static char *sapi_isapi_read_cookies(TSRMLS_D) efree(tmp_variable_buf); } } - return NULL; + return ""; } @@ -490,6 +490,8 @@ static void sapi_isapi_register_server_variables2(char **server_variables, LPEXT } else { efree(variable_buf); } + } else { /* for compatibility with Apache SAPIs */ + php_register_variable(*p, "", track_vars_array TSRMLS_CC); } p++; } |