#49840 [NEW]: PHP_SELF returns incorrect value
From: lxd717 at gmail dot com
Operating system: WINXP
PHP version: 5.2.11
PHP Bug Type: PHP options/info functions
Bug description: PHP_SELF returns incorrect value
Description:
------------
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
<?php
phpinfo();
?>
The script test.php was created in a non-english folder,such as
'/confucian/西æ¹å²å¦èä½/'.
Expected result:
----------------
/confucian/%e8%a5%bf%e6%96%b9%e5%93%b2%e5%ad%a6%e8%91%97%e4%bd%9c/test.php
or
/confucian/西æ¹å²å¦èä½/test.php
Actual result:
--------------
/confucian/η??Õѧָ׷/index.php/confucian/???????1??2?-|???????/index.php
--
Edit bug report at http://bugs.php.net/?id=49840&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49840&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49840&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49840&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49840&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49840&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49840&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49840&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49840&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49840&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49840&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49840&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49840&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49840&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49840&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49840&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49840&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49840&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49840&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49840&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49840&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49840&r=mysqlcfg
Thread (7 messages)
- lxd717 at gmail dot com