|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-10 17:52 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
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