svn: /php/php-src/branches/PHP_5_3/TSRM/ tsrm_virtual_cwd.c tsrm_virtual_cwd.h
| From: | Pierre Joye | Date: | Thu, 04 Nov 2010 01:16:20 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3/TSRM/ tsrm_virtual_cwd.c tsrm_virtual_cwd.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-63753@lists.php.net to get a copy of this message | ||
pajoye Thu, 04 Nov 2010 01:16:20 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=305070
Log:
- expose php_sys_(l)stat, doing will prevent me to have to provide pecl's builds for <5.3.3
and another set for 5.3.4+. Trunk remains the same, A(B/P)I can be broken there
Changed paths:
U php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.c
U php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.h
Modified: php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.c
===================================================================
--- php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.c 2010-11-03 22:25:14 UTC (rev 305069)
+++ php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.c 2010-11-04 01:16:20 UTC (rev 305070)
@@ -277,6 +277,18 @@
}
/* }}} */
+CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
+{
+ return php_sys_stat_ex(path, buf, 0);
+}
+/* }}} */
+
+CWD_API int php_sys_lstat(const char *path, struct stat *buf) /* {{{ */
+{
+ return php_sys_stat_ex(path, buf, 1);
+}
+/* }}} */
+
CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat) /* {{{ */
{
WIN32_FILE_ATTRIBUTE_DATA data;
Modified: php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.h
===================================================================
--- php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.h 2010-11-03 22:25:14 UTC (rev 305069)
+++ php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.h 2010-11-04 01:16:20 UTC (rev 305070)
@@ -131,8 +131,8 @@
#ifdef TSRM_WIN32
CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
-# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0)
-# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
+CWD_API int php_sys_stat(const char *path, struct stat *buf);
+CWD_API int php_sys_lstat(const char *path, struct stat *buf);
CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len);
#else
# define php_sys_stat stat