Bug #18454: $PHP_SELF / .htaccess & mod_action

From: Date: Sun, 21 Jul 2002 10:54:37 +0000
Subject: Bug #18454: $PHP_SELF / .htaccess & mod_action
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14727@lists.php.net to get a copy of this message
From: harry@ilo.de Operating system: WinXP PHP version: 4.1.2 PHP Bug Type: Variables related Bug description: $PHP_SELF / .htaccess & mod_action I'm using mod_action (Apache 1.3.23) in a .htaccess file to use PHP as a parser for other documents: ---------.htaccess------------------- AddType text/html .eh AddHandler eh-script .eh Action eh-script "/eh/parser.php" ------------------------------------- If I now call a .eh-file directly, say http://localhost/eh/test.eh, and try to determine the documentname of parser.php with $PHP_SELF, $PHP_SELF ist set to /eh/parser.php/eh/test.eh and not to /eh/parser.php as expected. I could use __FILE__ to work around this (__FILE__ is set correctly), but this doesn't work with includes when I need the name of the main parser file. -- Edit bug report at http://bugs.php.net/?id=18454&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18454&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18454&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18454&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18454&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18454&r=support Expected behavior: http://bugs.php.net/fix.php?id=18454&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18454&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18454&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18454&r=globals

« previous php.bugs (#14727) next »