#45447 [Opn]: filesystem time functions

From: Date: Tue, 08 Jul 2008 00:12:22 +0000
Subject: #45447 [Opn]: filesystem time functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126356@lists.php.net to get a copy of this message
 ID:               45447
 User updated by:  Bryan dot Gallant at hma dot com
 Reported By:      Bryan dot Gallant at hma dot com
 Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Windows Server 2008
 PHP Version:      5.2.6
 New Comment:

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


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

[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] jani@php.net

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



Thread (11 messages)

« previous php.bugs (#126356) next »