PHP servlet and context path
----------------------------
Key: JBWEB-99
URL:
http://jira.jboss.com/jira/browse/JBWEB-99
Project: JBoss Web
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBoss Web Server 1.0.1 GA
Reporter: Thomas Heute
Assigned To: Jean-Frederic Clere
By testing an existing app, i realized that $_SERVER['PHP_SELF'] was not set
correctly.
By definition:
http://ch2.php.net/reserved.variables
===================
'PHP_SELF'
The filename of the currently executing script, relative to the document root. For
instance, $_SERVER['PHP_SELF'] in a script at the address
http://example.com/test.php/foo.bar would be /test.php/foo.bar.
===================
Unfortunately in the JBossWeb environement we have the context path in between.
So getting that variable on
http://www.example.com/myContextPath/foo/test.php returns
"/foo/test.php" when it should return "/myContextPath/foo/test.php"
In order to have existing PHP application working with no modification,
$_SERVER['PHP_SELF'] should start with the context path.
In general, other SERVER properties should be checked to see their meaning in JBossWeb.
It would also be convenient to have access to the context path from a PHP script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira