summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/filestat.c23
-rw-r--r--ext/standard/php_filestat.h22
2 files changed, 23 insertions, 22 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 50a2c6d11c..23e569edca 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -96,27 +96,6 @@
#define S_IXROOT ( S_IXUSR | S_IXGRP | S_IXOTH )
-/* Switches for various filestat functions: */
-#define FS_PERMS 0
-#define FS_INODE 1
-#define FS_SIZE 2
-#define FS_OWNER 3
-#define FS_GROUP 4
-#define FS_ATIME 5
-#define FS_MTIME 6
-#define FS_CTIME 7
-#define FS_TYPE 8
-#define FS_IS_W 9
-#define FS_IS_R 10
-#define FS_IS_X 11
-#define FS_IS_FILE 12
-#define FS_IS_DIR 13
-#define FS_IS_LINK 14
-#define FS_EXISTS 15
-#define FS_LSTAT 16
-#define FS_STAT 17
-
-
PHP_RINIT_FUNCTION(filestat)
{
BG(CurrentStatFile)=NULL;
@@ -555,7 +534,7 @@ PHP_FUNCTION(clearstatcache)
/* {{{ php_stat
*/
-static void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC)
+PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC)
{
zval *stat_dev, *stat_ino, *stat_mode, *stat_nlink, *stat_uid, *stat_gid, *stat_rdev,
*stat_size, *stat_atime, *stat_mtime, *stat_ctime, *stat_blksize, *stat_blocks;
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h
index 81d162c35c..4e485b24bd 100644
--- a/ext/standard/php_filestat.h
+++ b/ext/standard/php_filestat.h
@@ -75,4 +75,26 @@ PHP_FUNCTION(clearstatcache);
#define getuid() 1
#endif
+PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC);
+
+/* Switches for various filestat functions: */
+#define FS_PERMS 0
+#define FS_INODE 1
+#define FS_SIZE 2
+#define FS_OWNER 3
+#define FS_GROUP 4
+#define FS_ATIME 5
+#define FS_MTIME 6
+#define FS_CTIME 7
+#define FS_TYPE 8
+#define FS_IS_W 9
+#define FS_IS_R 10
+#define FS_IS_X 11
+#define FS_IS_FILE 12
+#define FS_IS_DIR 13
+#define FS_IS_LINK 14
+#define FS_EXISTS 15
+#define FS_LSTAT 16
+#define FS_STAT 17
+
#endif /* PHP_FILESTAT_H */