Bug #49840 [Opn->Fbk]: PHP_SELF returns incorrect value

From: Date: Wed, 03 Mar 2021 13:18:02 +0000
Subject: Bug #49840 [Opn->Fbk]: PHP_SELF returns incorrect value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232507@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=49840&edit=1 ID: 49840 Updated by: cmb@php.net Reported by: lxd717 at gmail dot com Summary: PHP_SELF returns incorrect value -Status: Open +Status: Feedback Type: Bug Package: PHP options/info functions Operating System: win32 only - Apache/2.2.13 PHP Version: 5.2.11 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is that still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2009-10-14 03:19:24] lxd717 at gmail dot com version of web server: Apache/2.2.13 (Win32) useing IIS: not tested! ------------------------------------------------------------------------ [2009-10-12 20:11:45] srinatar@php.net 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-12 11:10:19] sjoerd@php.net See also Bug #49825 PHP_SELF duplicate path. ------------------------------------------------------------------------ [2009-10-12 03:48:35] lxd717 at gmail dot com Actual result: -------------- /confucian/η??՜ѧָ׷/test.php/confucian/???????1??2?-|???????/test. php ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=49840&edit=1

« previous php.bugs (#232507) next »