#23862 [NEW]: include_once no longer will include main file

From: Date: Wed, 28 May 2003 19:00:05 +0000
Subject: #23862 [NEW]: include_once no longer will include main file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40598@lists.php.net to get a copy of this message
From: jason at rpdesign dot com Operating system: Gentoo Linux PPC PHP version: 4.3.1 PHP Bug Type: Filesystem function related Bug description: include_once no longer will include main file include_once will not include the file that the browser has requested. even if it has not been executed yet (from withith the auto_prepend_file.) I am using mod_php with apache 2. In my .htaccess file I have: php_value auto_prepend_file prep.php in prep.php I have: ... # Get the name of the file requested from the browser $mainfile = ereg_replace('.*/', '', $_SERVER['SCRIPT_FILENAME']); include_once($mainfile); This now does nothing. With php 4.2.1 on your x86 RedHat box this works fine. -- Edit bug report at http://bugs.php.net/?id=23862&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23862&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23862&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23862&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23862&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23862&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23862&r=support Expected behavior: http://bugs.php.net/fix.php?id=23862&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23862&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23862&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23862&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23862&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23862&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23862&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23862&r=gnused

« previous php.bugs (#40598) next »