#41751 [Opn->Fbk]: touch() works incorrectly in Windows.

From: Date: Thu, 21 Jun 2007 13:30:28 +0000
Subject: #41751 [Opn->Fbk]: touch() works incorrectly in Windows.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114010@lists.php.net to get a copy of this message
ID: 41751 Updated by: sniper@php.net Reported By: aeolianmeson at blitzeclipse dot com -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Windows XP SP2 PHP Version: 5.2.3 New Comment: Of course. What is your system timezone set to? And what about the timezone setting in php.ini, date.timezone ? Previous Comments: ------------------------------------------------------------------------ [2007-06-20 22:30:10] aeolianmeson at blitzeclipse dot com Plus, this only happens with Windows. Dustin ------------------------------------------------------------------------ [2007-06-20 22:27:45] aeolianmeson at blitzeclipse dot com It's just easier to see when I use (0). I was using normal timestamps before. ------------------------------------------------------------------------ [2007-06-20 22:26:26] sniper@php.net Actually I think it's just the thing that you pass '0' to touch() as 2nd parameter.. ------------------------------------------------------------------------ [2007-06-20 21:58:56] aeolianmeson at blitzeclipse dot com 1182376591 1182376591 ctime doesn't appear to be afflicted. Dustin Oprea ------------------------------------------------------------------------ [2007-06-20 21:53:45] sniper@php.net What does this output for you: <?php echo time(), "\n"; touch('b'); // 2nd parameter is optional.. $b = stat('b'); echo $b['ctime'], "\n"; ?> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41751 -- Edit this bug report at http://bugs.php.net/?id=41751&edit=1

« previous php.bugs (#114010) next »