Tested on Feisty "Server: Apache/2.2.3 (Ubuntu) mod_jk/1.2.18 mod_python/3.2.10 Python/2.5.1 PHP/5.2.1 mod_perl/2.0.2 Perl/v5.8.8" with both:
error_reporting = E_ALL & ~E_NOTICE error_reporting = E_ALL & ~E_STRICT using the test file test.php containing: <?php echo "PATH_INFO " . $_SERVER['PATH_INFO']; ?> And accessing it using the URL http://localhost/~user/test.php/test/path/info gives the result: PATH_INFO /test/path/info in both cases. see also: http://uk.php.net/manual/en/reserved.variables.php#reserved.variables.server "'PATH_TRANSLATED' Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping. Note: As of PHP 4.3.2, PATH_TRANSLATED is no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as the SCRIPT_FILENAME server variable when it's not populated by Apache. This change was made to comply with the CGI specification that PATH_TRANSLATED should only exist if PATH_INFO is defined. Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH_INFO. " see also: http://httpd.apache.org/docs/2.2/mod/core.html#acceptpathinfo "The treatment of requests with trailing pathname information is determined by the handler responsible for the request. The core handler for normal files defaults to rejecting PATH_INFO requests. Handlers that serve scripts, such as cgi-script and isapi-handler, generally accept PATH_INFO by default." ** Changed in: php5 (Ubuntu) Status: New => Invalid -- Setting PHP to ~E_STRICT disables PATH_INFO https://bugs.launchpad.net/bugs/136249 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs