summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-10 17:55:01 +0000
committerZeev Suraski <zeev@php.net>2000-02-10 17:55:01 +0000
commit0fd89aa20d7a8226e68f13f4418e9183b46acd6e (patch)
tree384b86d20f3e45e2eb7357c1c76eb492d279b953 /main/SAPI.h
parent7d926a0e0c0862b4469200b5ebb7cc85c263b2dc (diff)
downloadphp-git-0fd89aa20d7a8226e68f13f4418e9183b46acd6e.tar.gz
More cleanup - move getenv() to SAPI
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index 2b65a1a7a7..88554cf18a 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -128,6 +128,7 @@ SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(char
SAPI_API int sapi_flush();
SAPI_API int sapi_get_uid();
+SAPI_API char *sapi_getenv(char *name, int name_len);
struct _sapi_module_struct {
char *name;
@@ -141,6 +142,7 @@ struct _sapi_module_struct {
int (*ub_write)(const char *str, unsigned int str_length);
void (*flush)(void *server_context);
int (*get_uid)(SLS_D);
+ char *(*getenv)(char *name, int name_len SLS_DC);
void (*sapi_error)(int type, const char *error_msg, ...);