Bug #18349: PATH_TRANSLATED agian

From: Date: Mon, 15 Jul 2002 12:53:36 +0000
Subject: Bug #18349: PATH_TRANSLATED agian
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14198@lists.php.net to get a copy of this message
From: madmax@express.ru Operating system: FreeBSD 4.6-RELEASE PHP version: 4.2.1 PHP Bug Type: Apache related Bug description: PATH_TRANSLATED agian Try include this string in apache configuration (.htaccess or base config) --------------------------------------------- AddType myphp/tst php4 Action myphp/tst /cgi-bin/printenv --------------------------------------------- Now run any script with .php4 extension, output would include: PATH_TRANSLATED="/usr/local/apache/virthost/v1/tst/tst.php4" ... SCRIPT_FILENAME="/usr/local/apache/virthost/v1/cgi-bin/printenv" Ok, now try change "printenv" on correct path to PHP, for example: --------------------------------------------- AddType myphp/tst php4 Action myphp/tst /cgi-bin/php --------------------------------------------- Now PHP try parsed himself, (some internal parser error on line 1234, for example, in file /usr/local/apache/virthost/v1/cgi-bin/php). But which env path must used PHP for target script ? May be PATH_TRANSLATED ? As we can see in printenv, this variable correct defined by apache. b.r. Kozin Maxim -- Edit bug report at http://bugs.php.net/?id=18349&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18349&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18349&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18349&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18349&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18349&r=support Expected behavior: http://bugs.php.net/fix.php?id=18349&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18349&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18349&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18349&r=globals

« previous php.bugs (#14198) next »