#35980 [Asn->Opn]: touch() works on files but not on directories (on Linux this works perfectly)

From: Date: Sun, 13 Jul 2008 16:10:44 +0000
Subject: #35980 [Asn->Opn]: touch() works on files but not on directories (on Linux this works perfectly)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126621@lists.php.net to get a copy of this message
ID: 35980 Updated by: jani@php.net Reported By: pavel dot hlousek at gmail dot com -Status: Assigned +Status: Open Bug Type: Filesystem function related Operating System: win32 only PHP Version: 5.2.4 (?) -Assigned To: pollita +Assigned To: nlopess Previous Comments: ------------------------------------------------------------------------ [2007-09-05 13:54:39] jani@php.net Sara, what's the status on this? (version was weird, never saw this before checking what people have now invented as version..) ------------------------------------------------------------------------ [2006-04-16 03:03:02] pollita@php.net I'll try looking for unencumbered information to develop a fix that avoids GPL licensing complications first. If it's indeed the result of a bug in the microsoft OS implementation there should be sufficient information out there to develop a fix that doesn't involve reusing restrictively licensed code. ------------------------------------------------------------------------ [2006-04-15 21:16:05] tony2001@php.net Sara, could you plz check the patch out? Thanks. ------------------------------------------------------------------------ [2006-01-15 18:30:26] nlopess@php.net Patch: http://mega.ist.utl.pt/~ncpl/php_win_touch_dirs.txt Note: it includes a function that was adapted from Perl 5 (win_filetime_from_time). The Perl code is distributed under GPL (and that file is (c) 1995 Microsoft Corporation), so I'm not sure if the code can go in. That function just converts a time_t into microsoft's format. ------------------------------------------------------------------------ [2006-01-15 00:15:30] nlopess@php.net This is a bug in microsoft's utime implementation. However, Perl is able to workaround this bug with SetFileTime(). I'll see if I can cook a nice patch. ------------------------------------------------------------------------ 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/35980 -- Edit this bug report at http://bugs.php.net/?id=35980&edit=1

« previous php.bugs (#126621) next »