From:             mark_ford_uk at yahoo dot co dot uk
Operating system: Red Hat Linux
PHP version:      4.3.1
PHP Bug Type:     Directory function related
Bug description:  is_file() safe mode restrictions on "." and ".."

As of version 4.3, security was improved with regards to functions like
is_file().  In particular, badly set file permissions will cause errors
similar to the following:

  Warning: is_file() [function.is-file]: SAFE MODE Restriction in effect.
The script whose uid is 10014 is not allowed to access ./filename/.....

What I have discovered is, if I use is_file() on the filenames "." and
".." my script will break with errors like those above.  Is this a bug?

Thanks.
-- 
Edit bug report at http://bugs.php.net/?id=22610&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22610&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22610&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22610&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22610&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22610&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22610&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22610&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22610&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22610&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22610&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22610&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22610&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22610&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22610&r=gnused

Reply via email to