|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-30 15:18 UTC] roman at compic dot ee
[2005-02-11 08:34 UTC] 4u at direct-netware dot de
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
Description: ------------ Every time a script wants to create a directory and a file in it, it fails because of SAFE MODE restrictions (uid). Please note, that this is only true, if uid control is active. Reproduce code: --------------- <?php mkdir ("mydir",0777); $fp = fopen ("mydir/myfile.php","w"); fclose ($fp); ?> Expected result: ---------------- a) Directory does not exist Directory will be created using the UID of the script and afterwards create the file. b) Directory does exist A warning (or notice? or whatever it is) will be printed out because the directory already exists and afterwards the file will still be created. Expecting the right UID (same as the script) has created the directory. I want to request, that files and directories are always have the UID of the script (and the UID of the "uploader") rather than the UID of the server which causes many providers to disturb normal PHP file actions. Actual result: -------------- a) Directory does not exist Directory will be created using the server UID and afterwards there will be an error while creating the file (SAFE MODE ...). b) Directory does exist A warning (or notice? or whatever it is) will be printed out because the directory already exists and afterwards the file will not be created because the script is not allowed to write in the directory (SAFE MODE ... UID ...).