From: phpbugs at mads dot sulau dot dk
Operating system: FreeBSD
PHP version: 4.3.4
PHP Bug Type: Filesystem function related
Bug description: Touch dose not work when not owner
Description:
------------
The touch command dose not work, if the user (eg. www) is not owner of the
file, and the file chmod is 0777, allowing a touch by the system.
Reproduce code:
---------------
<?php
/**
* expects you created a file called touch_test not
* owned by the user running the script
*/
touch('touch_test', time());
?>
Expected result:
----------------
I expect the touch to work :)
Actual result:
--------------
Touch generates a error about permissions, eg:
Warning: touch(): Utime failed: Operation not permitted in
/usr/local/lib/php/Cache/Container/file.php on line 159
--
Edit bug report at http://bugs.php.net/?id=27213&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27213&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27213&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27213&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27213&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27213&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27213&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27213&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27213&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27213&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27213&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27213&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27213&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27213&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27213&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27213&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27213&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27213&r=float