From:             david at grudl dot com
Operating system: Windows XP SP3
PHP version:      5.3.0alpha2
PHP Bug Type:     Filesystem function related
Bug description:  touch() opened file

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

-- 
Edit bug report at http://bugs.php.net/?id=45985&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45985&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45985&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45985&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45985&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45985&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45985&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45985&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45985&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45985&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45985&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45985&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45985&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45985&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45985&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45985&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45985&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45985&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45985&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45985&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45985&r=mysqlcfg

Reply via email to