php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62818 $_SERVER['PHP_SELF'] problem
Submitted: 2012-08-14 15:12 UTC Modified: 2012-08-18 08:13 UTC
From: ciropellegrino at libero dot it Assigned: laruence (profile)
Status: Wont fix Package: Built-in web server
PHP Version: 5.4.5 OS: Windows 7
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ciropellegrino at libero dot it
New email:
PHP Version: OS:

 

 [2012-08-14 15:12 UTC] ciropellegrino at libero dot it
Description:
------------
An extra character / is inserted in the superglobal $_SERVER['PHP_SELF']

Test script:
---------------
<?php
echo($_SERVER['PHP_SELF']);
?>

Expected result:
----------------
/index.php

Actual result:
--------------
/index.php/

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-16 01:37 UTC] laruence@php.net
-Assigned To: +Assigned To: laruence
 [2012-08-17 12:44 UTC] laruence@php.net
-Status: Assigned +Status: Wont fix
 [2012-08-17 12:44 UTC] laruence@php.net
this behavior act the same as other webserver which supports PATH_INFO like apache
 [2012-08-18 08:13 UTC] ciropellegrino at libero dot it
Thanks for the explanation. 
I'm sorry for the false alarm.

Bye
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 01:01:27 2025 UTC