|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-11-11 15:36 UTC] y dot korotia at hotmail dot com
Description:
------------
if i use Cyrillic filename PHP does not show error message when thrown
also filename is not possible to read
i use Win 8.1/IIS x64, php is NTS x86
Test script:
---------------
(1)
file: index.php
code: throw new \Exception('msg');
produces: Fatal error: Uncaught exception 'Exception' with message 'msg' in C:\..\index.php on line 2
(2) file: стартова.php
code: throw new \Exception('msg');
produces: Fatal error: in C:\..\��������.php on line 2
Expected result:
----------------
i expect to see error message and readable file name
Actual result:
--------------
no error message and unreadable filename
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 04:00:01 2025 UTC |
same with PHP-7rc6 it looks like the nature of this issue is the same as in require() which cannot find file until i use iconv() on filename in utf8 encoded code file like require iconv('utf-8', 'Windows-1251', 'стартова.php'); p.s. this is not a critical bug for me, i just play with php, but i find it as a bugalso to get URL path i have to do next urldecode(iconv('cp1251','utf-8', $_SERVER['REQUEST_URI'])) anyway, i'm stopping to comment on this, looks like a bug house regards