#27213 [Opn->Bgs]: Touch does not work when not owner
| From: | sniper@php.net | Date: | Tue, 10 Feb 2004 22:52:27 +0000 |
| Subject: | #27213 [Opn->Bgs]: Touch does not work when not owner | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54719@lists.php.net to get a copy of this message | ||
ID: 27213
Updated by: sniper@php.net
Reported By: phpbugs at mads dot sulau dot dk
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: FreeBSD
PHP Version: 4.3.4
New Comment:
Another braindead freebsd func:
http://www.freebsd.org/cgi/man.cgi?query=utime&sektion=3&apropos=0&manpath=freebsd
(not PHP "bug" at all, works just fine with Linux btw. :)
Previous Comments:
------------------------------------------------------------------------
[2004-02-10 15:45:48] phpbugs at mads dot sulau dot dk
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 this bug report at http://bugs.php.net/?id=27213&edit=1