#45447 [Opn->Fbk]: filesystem time functions

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45447
 Updated by:       [email protected]
 Reported By:      Bryan dot Gallant at hma dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Windows Server 2008
 PHP Version:      5.2.6
 New Comment:

What filesystem is used in the one that fails and on the one where it
doesn't fail..?


Previous Comments:
------------------------------------------------------------------------

[2008-08-04 21:13:56] Bryan dot Gallant at hma dot com

Interesting Update.  using the same code on an old Win2k Box against
the files on the 2008 server, it works as intended.

------------------------------------------------------------------------

[2008-07-08 00:12:21] Bryan dot Gallant at hma dot com

Sorry, it's the full path in a string.

------------------------------------------------------------------------

[2008-07-07 23:57:46] Bryan dot Gallant at hma dot com

So far I've tried all manner of office documents, tifs, jpegs, text
files, etc.

------------------------------------------------------------------------

[2008-07-07 21:50:54] [email protected]

And $file is..?

------------------------------------------------------------------------

[2008-07-07 19:10:34] Bryan dot Gallant at hma dot com

Description:
------------
All Time related Statistics for Files return "-1".

W2K8/IIS7

Reproduce code:
---------------
print_r(stat($file));

Expected result:
----------------
Unix timestamp on atime,mtime,ctime

Actual result:
--------------
Array ( [0] => 0 
        [1] => 0 
        [2] => 33188 
        [3] => 1 
        [4] => 0 
        [5] => 0 
        [6] => -1 
        [7] => 0 
        [8] => -1 
        [9] => -1 
        [10] => -1 
        [11] => -1 
        [12] => -1 
        [dev] => 0 
        [ino] => 0 
        [mode] => 33188 
        [nlink] => 1 
        [uid] => 0 
        [gid] => 0 
        [rdev] => -1 
        [size] => 0 
        [atime] => -1 
        [mtime] => -1 
        [ctime] => -1 
        [blksize] => -1 
        [blocks] => -1 )


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45447&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.