From: pavel dot hlousek at gmail dot com
Operating system: Win2K
PHP version: 4.4.1
PHP Bug Type: *Directory/Filesystem functions
Bug description: touch() works on files but not on directories (on Linux this
works perfectly)
Description:
------------
<?php touch('non-existing-file'); ?> - Correct. Creates a new file.
<?php touch('existing-file'); ?> - Correct. Changes file's mtime.
<?php touch('existing-directory'); ?> - Wrong on Win2K. Does not change
directory's mtime. Correct on Linux. I did not test any other Win32
platforms. Filesystem: NTFS. The user running the script owns
'existing-directory'. safe_mode=Off.
Reproduce code:
---------------
<?php touch('existing-directory'); ?>
Expected result:
----------------
Change mtime of an existing directory.
Actual result:
--------------
Utime failed: Permission denied in <fullpath/to/existing-directory> on
line 1
--
Edit bug report at http://bugs.php.net/?id=35980&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35980&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35980&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35980&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35980&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35980&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35980&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35980&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35980&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35980&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35980&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35980&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35980&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35980&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35980&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35980&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35980&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35980&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35980&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35980&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35980&r=mysqlcfg