|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-04 08:24 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 11:00:01 2025 UTC |
Description: ------------ Opened file can be touched in Windows succefully, but under PHP 5.3 alpha 2 it generates error message 'Utime failed'. I think error is caused by new function win32_utime() in tsrm_virtual_cwd.c called from virtual_utime(). Reproduce code: --------------- $f = fopen('test.dat', 'r'); touch('test.dat'); fclose($f); Expected result: ---------------- modification time of file test.dat is updated Actual result: -------------- Warning: touch(): Utime failed: Bad file descriptor or Warning: touch(): Utime failed: No such file or directory