summaryrefslogtreecommitdiff
path: root/sapi/isapi/php5isapi.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-05-13 17:21:39 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-05-13 17:21:39 +0000
commit50260570b4828dda0c1cf53e446ef2edd5c862ea (patch)
treef3d31840be21023ce08b15d891a0b96d67919bda /sapi/isapi/php5isapi.c
parent0821f8f7d928859c947f1297c27e949a92c8be7b (diff)
downloadphp-git-50260570b4828dda0c1cf53e446ef2edd5c862ea.tar.gz
Make isapi more compatible with apache sapis as far as the creation
$_COOKIE super-global and various $_SERVER values.
Diffstat (limited to 'sapi/isapi/php5isapi.c')
-rw-r--r--sapi/isapi/php5isapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/isapi/php5isapi.c b/sapi/isapi/php5isapi.c
index 84f2d67cf7..5cf8ac1a7d 100644
--- a/sapi/isapi/php5isapi.c
+++ b/sapi/isapi/php5isapi.c
@@ -354,7 +354,7 @@ static char *sapi_isapi_read_cookies(TSRMLS_D)
efree(tmp_variable_buf);
}
}
- return NULL;
+ return "";
}
@@ -567,6 +567,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++;
}