From: [EMAIL PROTECTED] Operating system: Tru64Unix 5.1A PHP version: 4.3.0 PHP Bug Type: *General Issues Bug description: safe_mode works well with include but not with require
After upgrade from PHP 4.2.2 to 4.3.0 I encountered the problem with safe_mode in conjunction with require(). Example: [php.ini] safe_mode = On; include_path = ".:./:/path/to/my/app/dir"; safe_mode_include_dir = ".:./:/path/to/my/app/dir"; [/path/to/my/app/dir/index_working.php] - works fine for me <?php include "header.php"; ?> [/path/to/my/app/dir/index_buggy.php] - throws error <?php require "header.php"; ?> The error: [error] PHP Fatal error: main() [<a href='http://www.php.net/function.main'>function.main</a>]: Failed opening required 'header.php' (include_path='.:./:/path/to/my/app/dir') in /path/to/my/app/dir/index_buggy.php on line 2 Operating system: Tru64Unix 5.1a Webserver: Apache 1.3.26 -- Edit bug report at http://bugs.php.net/?id=21565&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21565&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21565&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21565&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21565&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21565&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21565&r=support Expected behavior: http://bugs.php.net/fix.php?id=21565&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21565&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21565&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21565&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21565&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21565&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21565&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21565&r=gnused