php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23800 _SERVER["PATH_INFO"] no value
Submitted: 2003-05-25 12:01 UTC Modified: 2003-05-25 14:12 UTC
From: fester at x-dot dot de Assigned: shane (profile)
Status: Closed Package: *General Issues
PHP Version: 4.3.2RC4 OS: Debian Woody
Private report: No CVE-ID: None
 [2003-05-25 12:01 UTC] fester at x-dot dot de
Hello!
The Variables for 
PATH_INFO and PATH_TRANSLATED
have no Value. If i use a PHP 4.3.1 on the same system theses variables show correct values.

New are the variables ORIG_PATH_TRANSLATED
and ORIG_PATH_INFO which show correct values.

Are these new variables? I dont find any information about it..

PHP is configured with:
./configure' '--prefix=/usr/local/php4.3.2' '--disable-debug' '--enable-force-cgi-redirect' '--disable-ipv6' '--with-openssl' '--with-zlib' '--enable-calendar' '--with-gd=/usr/local/gd/' '--with-ttf=/usr/' '--with-freetype-dir=/usr/' '--with-mysql=/usr/' '--enable-xslt' '--with-xslt-sablot=/usr/local/sablotron/' '--with-expat-dir=/usr/local/expat/' '--enable-track-vars' 

Regards
J.Fester

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-25 12:03 UTC] derick@php.net
Making this critical, this kind of BC breaks are not acceptable
 [2003-05-25 12:38 UTC] shane@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This behaviour started with 4.3.0.  See the CGI spec for details about PATH_INFO/PATH_TRANSLATED.  You can set cgi.fix_pathinfo=0 to have pre-4.3.0 behaviour (thus no BC issue), or use SCRIPT_NAME/SCRIPT_FILENAME which is the correct variable you should be using (unless you *actually* are using PATH_INFO).

 [2003-05-25 12:41 UTC] derick@php.net
let me quote the original bugreport:

"If i use a PHP 4.3.1 on the same system theses variables
show correct values."

regards,
Derick
 [2003-05-25 13:36 UTC] shane@php.net
cgi.fix_pathinfo=0 is now default
 [2003-05-25 14:12 UTC] fester at x-dot dot de
Hello!
Thanks for the fast answers! 
Using "cgi.fix_pathinfo=0" in php.ini solves the problem.
Regards
J.Fester
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC