|  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: 2021-03-14 04:22 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: cmb (profile)
Status: No Feedback 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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
41 + 5 = ?
Subscribe to this entry?

 [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!
 [2021-03-03 13:18 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-03 13:18 UTC]
Is that still an issue with any of the actively supported PHP

[1] <>
 [2021-03-14 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 15:03:41 2023 UTC