}
-SAPI_API char *sapi_getenv(char *name, int name_len)
+SAPI_API char *sapi_getenv(char *name, size_t name_len)
{
if (sapi_module.getenv) {
SLS_FETCH();
SAPI_API int sapi_flush(void);
SAPI_API struct stat *sapi_get_stat(void);
-SAPI_API char *sapi_getenv(char *name, int name_len);
+SAPI_API char *sapi_getenv(char *name, size_t name_len);
SAPI_API char *sapi_get_default_content_type(SLS_D);
SAPI_API void sapi_get_default_content_type_header(sapi_header_struct *default_header SLS_DC);
int (*ub_write)(const char *str, unsigned int str_length);
void (*flush)(void *server_context);
struct stat *(*get_stat)(SLS_D);
- char *(*getenv)(char *name, int name_len SLS_DC);
+ char *(*getenv)(char *name, size_t name_len SLS_DC);
void (*sapi_error)(int type, const char *error_msg, ...);
}
-static char *php_apache_getenv(char *name, int name_len SLS_DC)
+static char *php_apache_getenv(char *name, size_t name_len SLS_DC)
{
return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name);
}