From 0de11ca950661b64f1034e9bc8ebc796ef15f0a0 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 19 Aug 2008 13:03:09 +0000 Subject: [PATCH] Document recent changes to the file system portability: * touch($dir) works on Windows as of 5.3 * ino, uid & gid is always 0 on Windows git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265125 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/stat.xml | 17 +++++++------ reference/filesystem/functions/touch.xml | 31 +++++++++++++++++++++--- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/reference/filesystem/functions/stat.xml b/reference/filesystem/functions/stat.xml index 5a2ea6b2b4..257b8f2415 100644 --- a/reference/filesystem/functions/stat.xml +++ b/reference/filesystem/functions/stat.xml @@ -1,5 +1,5 @@ - + stat @@ -62,7 +62,7 @@ 1 ino - inode number + inode number * 2 @@ -77,12 +77,12 @@ 4 uid - userid of owner + userid of owner * 5 gid - groupid of owner + groupid of owner * 6 @@ -112,17 +112,20 @@ 11 blksize - blocksize of filesystem IO * + blocksize of filesystem IO ** 12 blocks - number of blocks allocated * + number of blocks allocated ** - * Only valid on systems supporting the st_blksize type - other + * On Windows this will always be 0. + + + ** Only valid on systems supporting the st_blksize type - other systems (e.g. Windows) return -1. diff --git a/reference/filesystem/functions/touch.xml b/reference/filesystem/functions/touch.xml index a124724efd..80db6ef47b 100644 --- a/reference/filesystem/functions/touch.xml +++ b/reference/filesystem/functions/touch.xml @@ -1,5 +1,5 @@ - + touch @@ -67,6 +67,31 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + It became possible to change the modification time of a directory + under Windows. + + + + + + + + &reftitle.examples; @@ -91,8 +116,8 @@ if (touch($FileName)) { &reftitle.notes; - It is not currently possible to change the modification time of a - directory with this function under Windows. + Prior to PHP 5.3.0 it was not possible to change the modification time + of a directory with this function under Windows.