#49840 [Opn]: PHP_SELF returns incorrect value

From: Date: Mon, 12 Oct 2009 03:48:35 +0000
Subject: #49840 [Opn]: PHP_SELF returns incorrect value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143469@lists.php.net to get a copy of this message
ID: 49840 User updated by: lxd717 at gmail dot com Reported By: lxd717 at gmail dot com Status: Open Bug Type: PHP options/info functions Operating System: WINXP PHP Version: 5.2.11 New Comment: Actual result: -------------- /confucian/η??՜ѧָ׷/test.php/confucian/???????1??2?-|???????/test. php Previous Comments: ------------------------------------------------------------------------ [2009-10-12 03:47:14] lxd717 at gmail dot com 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 this bug report at http://bugs.php.net/?id=49840&edit=1

« previous php.bugs (#143469) next »