php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19592 PHP_SELF is not correct with --enable-discard-path
Submitted: 2002-09-25 08:57 UTC Modified: 2002-12-03 01:40 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: san at cobalt dot rmnet dot it Assigned:
Status: Closed Package: URL related
PHP Version: 4.2.3 OS: GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: san at cobalt dot rmnet dot it
New email:
PHP Version: OS:

 

 [2002-09-25 08:57 UTC] san at cobalt dot rmnet dot it
When compiled with --enable-discrd-path
PHP does not provide a valid PHP_SELF.

It seems to me as simple as concatenating
SCRIPT_NAME with PATH_INFO, do I miss something ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-25 10:42 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2002-09-25 12:38 UTC] san at cobalt dot rmnet dot it
In absence of a PATH_INFO PHP_SELF is correct
( it is set to the value of SCRIPT_NAME )
But when a PATH_INFO is given PHP_SELF is set to
its value. For example:

  URI: /php4info.cgi       --- PHP_SELF: /php4info.cgi
  URI: /php4info.cgi/test  --- PHP_SELF: /test

Of course the scripts themself start with #!/path/to/php4
And the interpreter was compiled with --enable-discard-path
 [2002-10-03 07:36 UTC] makler+phpbug at man dot torun dot pl
You can find my patch proposition for this PHP Bug at:
http://groups.google.com/groups?selm=amelb7%24297k%241%40FreeBSD.csie.NCTU.edu.tw
(I have sent this to php-dev list, but there was
no response from php core developers)...

Maybe updating this bug report would make any change.
 [2002-12-03 01:40 UTC] shane@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC