[jboss-jira] [JBoss JIRA] (JBWEB-99) PHP servlet and context path
Jean-Frederic Clere (JIRA)
jira-events at lists.jboss.org
Thu May 30 10:40:54 EDT 2013
[ https://issues.jboss.org/browse/JBWEB-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list