summaryrefslogtreecommitdiff
path: root/mod_php3.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-24 00:12:00 +0000
committerZeev Suraski <zeev@php.net>1999-04-24 00:12:00 +0000
commit0818d96c97ceec4dbb8251c5220a2fdcdf39f355 (patch)
treec56f529e445e4bee928e7c28e0ccbb7f67572f16 /mod_php3.c
parent05d24c60223439b94d4100538331fb6749022ca3 (diff)
downloadphp-git-0818d96c97ceec4dbb8251c5220a2fdcdf39f355.tar.gz
A lot of cleanups... Removed old thread-safe code and other redundant code and files
Diffstat (limited to 'mod_php3.c')
-rw-r--r--mod_php3.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/mod_php3.c b/mod_php3.c
index 46febce3fb..9f8d56dc33 100644
--- a/mod_php3.c
+++ b/mod_php3.c
@@ -67,23 +67,8 @@
module MODULE_VAR_EXPORT php3_module;
-#ifndef THREAD_SAFE
int saved_umask;
-#else
-#define GLOBAL(a) php3_globals->a
-#define STATIC GLOBAL
-#define TLS_VARS \
- php3_globals_struct *php3_globals; \
- php3_globals = TlsGetValue(TlsIndex);
-#endif
-#ifndef TLS_VARS
-#define TLS_VARS
-#endif
-
-#ifndef GLOBAL
-#define GLOBAL(x) x
-#endif
#if WIN32|WINNT
/* popenf isn't working on Windows, use open instead*/
@@ -167,15 +152,13 @@ BOOL WINAPI DllMain(HANDLE hModule,
void php3_save_umask()
{
- TLS_VARS;
- GLOBAL(saved_umask) = umask(077);
- umask(GLOBAL(saved_umask));
+ saved_umask = umask(077);
+ umask(saved_umask);
}
void php3_restore_umask()
{
- TLS_VARS;
- umask(GLOBAL(saved_umask));
+ umask(saved_umask);
}
int send_php3(request_rec *r, int display_source_mode, char *filename)