From: drg at infomex dot pl
Operating system: Linux 2.4.20
PHP version: 4.3.2
PHP Bug Type: Scripting Engine problem
Bug description: safe_mode, include, safe_mode_include_dir
Description:
------------
When:
safe_mode=On
safe_mode_include_dir=
fp=fopen("/file/not/owned/be/me") fail, but
include("/file/not/owned/be/me") work fine.
When:
safe_mode=On
safe_mode_include_dir=/tmp (examply)
then
include("/file/not/owned/be/me") fail.
I think, that when safe_mode=On and safe_mode_include_dir is not set,
include("/file/not/owned/be/me") should fail too, as well as
fopen("/file/not/owned/be/me");
--
Edit bug report at http://bugs.php.net/?id=24775&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24775&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24775&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24775&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24775&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24775&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24775&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24775&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24775&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24775&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24775&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24775&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24775&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24775&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24775&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24775&r=gnused