com php-src: fixed one more stat() occurrence: Zend/zend_stre am.h Zend/zend_virtual_cwd.c
| From: | Anatol Belski | Date: | Mon, 18 Nov 2013 08:39:42 +0000 |
| Subject: | com php-src: fixed one more stat() occurrence: Zend/zend_stre am.h Zend/zend_virtual_cwd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73976@lists.php.net to get a copy of this message | ||
Commit: 365603916e3201f0c5c832eb8737e3832e0a5f07
Author: Anatol Belski <ab@php.net> Mon, 18 Nov 2013 09:39:42 +0100
Parents: 383ddcde2bec6794a082412f4b9ec9f863f5a656
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=365603916e3201f0c5c832eb8737e3832e0a5f07
Log:
fixed one more stat() occurrence
Changed paths:
M Zend/zend_stream.h
M Zend/zend_virtual_cwd..c
Diff:
diff --git a/Zend/zend_stream.h b/Zend/zend_stream.h
index 4bb39d2..9fd53e9 100644
--- a/Zend/zend_stream.h
+++ b/Zend/zend_stream.h
@@ -86,12 +86,14 @@ END_EXTERN_C()
# define zend_ftell _ftelli64
# define zend_lseek _lseeki64
# define zend_fstat _fstat64
+# define zend_stat _stat64
typedef struct __stat64 zend_stat_t;
#else
# define zend_fseek fseek
# define zend_ftell ftell
# define zend_lseek lseek
-# define zend_fstat stat
+# define zend_fstat fstat
+# define zend_stat stat
typedef struct stat zend_stat_t;
#endif
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
index 4f52c2b...ff181e5 100644
--- a/Zend/zend_virtual_cwd.c
+++ b/Zend/zend_virtual_cwd.c
@@ -299,7 +299,7 @@ CWD_API int php_sys_stat_ex(const char *path, zend_stat_t *buf, int lstat) /* {{
ALLOCA_FLAG(use_heap_large);
if (!GetFileAttributesEx(path, GetFileExInfoStandard, &data)) {
- return stat(path, buf);
+ return zend_stat(path, buf);
}
if (path_len >= 1 && path[1] == ':') {