php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42558 $_SERVER['PHP_SELF'] incorrect
Submitted: 2007-09-05 09:55 UTC Modified: 2007-09-05 12:20 UTC
From: james dot hayward at egg dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.4 OS: Windows 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: james dot hayward at egg dot com
New email:
PHP Version: OS:

 

 [2007-09-05 09:55 UTC] james dot hayward at egg dot com
Description:
------------
The script name seems to be reproduced twice in the environment variable $_SERVER['PHP_SELF'].

I'm afraid I don't have access to the server (work machine) so I cannot test the latest CVS snapshot.

$_SERVER['SCRIPT_NAME'] is showing correctly.

Reproduce code:
---------------
this can be shown with just:

<?php phpinfo(); ?>




Expected result:
----------------
when this is on:

http://intranet/teams/training_development/phpinfo.php

I would expect

$_SERVER['PHP_SELF'] == /teams/training_development/phpinfo.php

Actual result:
--------------
$_SERVER['PHP_SELF'] == /teams/training_development/phpinfo.php/teams/training_development/phpinfo.php



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-05 12:20 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

And this is already fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 23:01:30 2024 UTC