]> granicus.if.org Git - php/commitdiff
- drop tsrmls_fetch in tsrm_win32_access
authorPierre Joye <pajoye@php.net>
Fri, 17 Sep 2010 09:27:19 +0000 (09:27 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 17 Sep 2010 09:27:19 +0000 (09:27 +0000)
TSRM/tsrm_virtual_cwd.c
TSRM/tsrm_virtual_cwd.h
TSRM/tsrm_win32.c
TSRM/tsrm_win32.h
UPGRADING.INTERNALS

index b8292520bc0bfef80cc34892121f3ab93c10c98f..d6d32e5d70e62e2e11e899476c83d74cd3275e2b 100644 (file)
@@ -1433,7 +1433,7 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) /* {{{ */
        }
 
 #if defined(TSRM_WIN32)
-       ret = tsrm_win32_access(new_state.cwd, mode);
+       ret = tsrm_win32_access(new_state.cwd, mode TSRMLS_CC);
 #else
        ret = access(new_state.cwd, mode);
 #endif
index 19953c89567d1fd8f8f1e19903a9647a6082e2b4..7f743c88f11318471666742317419761ddc3b4f8 100644 (file)
@@ -310,7 +310,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
 #define VCWD_OPENDIR(pathname) opendir(pathname)
 #define VCWD_POPEN(command, type) popen(command, type)
 #if defined(TSRM_WIN32)
-#define VCWD_ACCESS(pathname, mode) tsrm_win32_access(pathname, mode)
+#define VCWD_ACCESS(pathname, mode) tsrm_win32_access(pathname, mode TSRMLS_CC)
 #else
 #define VCWD_ACCESS(pathname, mode) access(pathname, mode)
 #endif
index 18917cd16b1adbfb230d044d02608029058bd764..a1fb12f2743aefd7b936abea2af666361ca80c9d 100644 (file)
@@ -190,7 +190,7 @@ Finished:
        return NULL;
 }
 
-TSRM_API int tsrm_win32_access(const char *pathname, int mode)
+TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC)
 {
        time_t t;
        HANDLE thread_token;
@@ -208,8 +208,6 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
        realpath_cache_bucket * bucket = NULL;
        char * real_path = NULL;
 
-       TSRMLS_FETCH();
-
        if (mode == 1 /*X_OK*/) {
                DWORD type;
                return GetBinaryType(pathname, &type) ? 0 : -1;
index dc5f34e5f227a8a9148d0c864161e68be61d0ed3..394053d6d7db05953e18a339438a98858b94ceac 100644 (file)
@@ -98,7 +98,7 @@ TSRM_API void tsrm_win32_shutdown(void);
 TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env);
 TSRM_API FILE *popen(const char *command, const char *type);
 TSRM_API int pclose(FILE *stream);
-TSRM_API int tsrm_win32_access(const char *pathname, int mode);
+TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);
 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf);
 
 TSRM_API int shmget(int key, int size, int flags);
index a102a2927a0901fa5f807a2a99be2e2bf3bfedec..d5fae6b9e30987d4a0aab672e05317dc39d439ca 100644 (file)
@@ -91,3 +91,5 @@ Use emalloc, emalloc_rel, efree or efree_rel instead.
 . sapi_register_input_filter
   SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC);
  
+. tsrm_win32_access
+  TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);