|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49840 PHP_SELF returns incorrect value
Submitted: 2009-10-12 03:47 UTC Modified: 2009-10-23 20:48 UTC
Avg. Score:2.5 ± 0.9
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: lxd717 at gmail dot com Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.2.11 OS: win32 only - Apache/2.2.13
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.
Block user comment
Status: Assign to:
Bug Type:
From: lxd717 at gmail dot com
New email:
PHP Version: OS:


 [2009-10-12 03:47 UTC] lxd717 at gmail dot com
PHP_SELF returns incorrect value.
I creat a folder with chinese, the path is '/confucian/西方哲学著作/', and then I check phpinfo(),I found that $_SERVER['PHP_SELF'] returns incorrect value. But folders Created in english found no errors.

Reproduce code:
file: test.php

The script test.php was created in a non-english folder,such as '/confucian/西方哲学著作/'.

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-12 03:48 UTC] lxd717 at gmail dot com
Actual result:
 [2009-10-12 11:10 UTC]
See also Bug #49825 PHP_SELF duplicate path.
 [2009-10-12 20:11 UTC]
also provide the version of web server are you using ? as bug #49825 mentions, are you seeing this issue with IIS as well ? if yes, then this bug will need to be moved as duplicate of 49825 . 
 [2009-10-14 03:19 UTC] lxd717 at gmail dot com
version of web server: Apache/2.2.13 (Win32) 
useing IIS: not tested!
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 21 17:01:23 2021 UTC