note 15399 added to features.safe-mode
| From: | jedi at tstonramp dot com | Date: | Fri, 07 Sep 2001 23:17:03 +0000 |
| Subject: | note 15399 added to features.safe-mode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17796@lists.php.net to get a copy of this message | ||
Many filesystem-related functions are not appropriately restricted when Safe Mode is activated on an
NT server it seems. I would assume that this is due to the filesystem not making use of UID.
In all of my scripts, no matter WHO owns the script (file Ownership-wise) or WHO owns the
directory/file in question; both UIDs display
(getmyuid() and fileowner()) as UID = 0
This has the rather nasty side effect of Safe Mode allowing multiple filesystem operations because
it believes the script owner and file/dir owner are one and the same.
While this can be worked around by the judicious application of proper filesystem privileges,
it's still a "dud" that many of Safe Mode's securities are simply not there with
an NT implementation.
http://www.php.net/manual/en/features.safe-mode.php