diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
commit | d87cc976e1156b839fc6d4aa6b473a126802b8e3 (patch) | |
tree | 8acb068dd7458e1c8df3a7d8ecb87d065990fdb1 /main/safe_mode.c | |
parent | b4f3b9d3ce9f55cf040fb5aa8f201c64646cab43 (diff) | |
download | php-git-d87cc976e1156b839fc6d4aa6b473a126802b8e3.tar.gz |
Redesigned thread safety mechanism - nua nua
Diffstat (limited to 'main/safe_mode.c')
-rw-r--r-- | main/safe_mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c index c21e082468..fdf6f161de 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -50,7 +50,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) long uid=0L, gid=0L, duid=0L, dgid=0L; char path[MAXPATHLEN]; char *s; - PLS_FETCH(); + TSRMLS_FETCH(); if (!filename) { return 0; /* path must be provided */ @@ -126,7 +126,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) } else if (PG(safe_mode_gid) && dgid == php_getgid()) { return 1; } else { - SLS_FETCH(); + TSRMLS_FETCH(); if (SG(rfc1867_uploaded_files)) { if (zend_hash_exists(SG(rfc1867_uploaded_files), (char *) filename, strlen(filename)+1)) { @@ -156,7 +156,7 @@ PHPAPI char *php_get_current_user() { struct passwd *pwd; struct stat *pstat; - SLS_FETCH(); + TSRMLS_FETCH(); if (SG(request_info).current_user) { return SG(request_info).current_user; |