]
Jean-Frederic Clere resolved JBWEB-99.
--------------------------------------
Resolution: Out of Date
PHP servlet and context path
----------------------------
Key: JBWEB-99
URL:
https://issues.jboss.org/browse/JBWEB-99
Project: JBoss Web
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: JBossWeb-1.0.1.GA
Reporter: Thomas Heute
Assignee: Jean-Frederic Clere
Attachments: servlets-php.jar
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, please contact your JIRA administrators
For more information on JIRA, see: