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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php