|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2006-06-02 08:41 UTC] php-bugs at shad dot pp dot ru
 Description: ------------ Scripts within directories containing international characters cannot be executed. I got these messages in error log: [Fri Jun 02 12:25:49 2006] [error] [client 195.131.159.151] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0, referer: http://musicstation.spb.ru/files/ [Fri Jun 02 12:25:49 2006] [error] [client 195.131.159.151] PHP Warning: Unknown: Failed opening 'D:/www/musicstation.spb.ru/files/\xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xbe\xd0\xb5_\xd0\xb8\xd0\xbc\xd1\x8f/index.php' for inclusion (include_path='.;C:\\php5\\pear') in Unknown on line 0, referer: http://musicstation.spb.ru/files/ This is not a problem of apache, because I can access normal html documents and other files in such directories. My configuration is: Windows 2000 SP4 + hotfixes / Apache 2.0.48 / PHP 5.1.4 installed as Apache2 module / NTFS filesystem. Patchesfix37672 (last revision 2013-08-21 04:31 UTC by ku at digitaldolphins dot jp)Pull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
Hi. I have same problem too! It seems that php5apache2_2.dll assumes request_rec::filename as ANSI charset. However it will be UTF-8. It'll need charset conversion: from UTF-8 to local ANSI codepage. Check C:\php-sdk\php54dev\vc9\x86\php-5.4.18\sapi\apache2handler\sapi_apache2.c --- static int php_handler(request_rec *r) { ... zend_file_handle zfd; zfd.type = ZEND_HANDLE_FILENAME; zfd.filename = (char *) r->filename; zfd.free_filename = 0; zfd.opened_path = NULL; ... --- What do you think about it? Thanks.