6.0.0-beta1
7/25/25

[#6119] PATH_INFO problems
Summary PATH_INFO problems
Queue DIMP
Queue Version HEAD
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester tedm (at) ipinc (dot) net
Created 01/16/2008 (6400 days ago)
Due
Updated 01/16/2008 (6400 days ago)
Assigned
Resolved 01/16/2008 (6400 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/16/2008 10:30:53 PM tedm (at) ipinc (dot) net Comment #6 Reply to this comment
Apache 1.3 is by no means a modern web server anymore.
This is a subjective value judgement and the install documentation

should strive for factual information, and refrain from making value

judgements.  Is the goal of the install documentation to insult

people's choice of software or to assist people in installing dimp?
01/16/2008 10:28:42 PM tedm (at) ipinc (dot) net Comment #5 Reply to this comment
Also, since when was PATH_INFO removed from Apache 1.3? It's been on
by default on every 1.3 install I've used.
PATH_INFO does not show up in the list of environmental variables 
shown by phpinfo when run under Apache 1.3



In any case, if the directive for turning on PATH_INFO can be skipped 
in Apache 2 by a simple code change in dimp, then what is the 
objection to making that change?
01/16/2008 10:21:14 PM tedm (at) ipinc (dot) net Comment #4 Reply to this comment


What part of



  "...the restrictions against running it under Apache 1.3

and PHP4/5 SHOULD BE MADE CLEAR IN THE INSTALL DOCUMENTATION..."



are you objecting to?


01/16/2008 10:01:52 PM Chuck Hagenbuch Comment #3 Reply to this comment
Also, since when was PATH_INFO removed from Apache 1.3? It's been on 
by default on every 1.3 install I've used.
01/16/2008 09:53:58 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
Per the docs, "DIMP requires a web server that correctly sets the
PATH_INFO environment    variable for all PHP scripts. Every modern
web server supports this"

Incorrect.  Apache version 1.3.39 does not support "AcceptPathInfo
On"  The docs lead the user to believe it is.
Apache 1.3 is by no means a modern web server anymore.
01/16/2008 08:24:40 PM tedm (at) ipinc (dot) net Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ PATH_INFO problems
Queue ⇒ DIMP
State ⇒ Unconfirmed
Reply to this comment
Per the docs, "DIMP requires a web server that correctly sets the 
PATH_INFO environment    variable for all PHP scripts. Every modern 
web server supports this"



Incorrect.  Apache version 1.3.39 does not support "AcceptPathInfo On" 
  The docs lead the user to believe it is.



One possible solution if running under PHP5 might be to add



$_SERVER['PATH_INFO'] = (isset($_SERVER['ORIG_PATH_INFO'])) ? 
$_SERVER['ORIG_PATH_INFO'] : ' ';



to the beginning of imp.php and dimple.php since they are the only 
scripts that support it, and I think PHP5 contains the ORIG_PATH_INFO 
variable (but I'm not sure since I don't run PHP5)



PHP4 offers _SERVER["REQUEST_URI"] and _SERVER["PATH_TRANSLATED"] but 
that's it.  Perhaps a bit of parsing of these?



Horde, IMP, and all the other framework programs run fine on Apache 
1.3 and PHP4.  It seems pointless to hamstring dimp since it's 
unlikely a site that has a running IMP setup is going to mess around 
with changing their Apache and PHP configs just to support it.



If there's no interest in the likely trivial amount of coding to 
correct this, the restrictions against running it under Apache 1.3 and 
PHP4/5 should be made clear in the install documentation

Saved Queries