Req #45517 [Com]: Widechar/Unicode Win32 APIs not used for file/dir access
| From: | dimagsv at f-m dot fm | Date: | Tue, 20 Jan 2015 09:26:47 +0000 |
| Subject: | Req #45517 [Com]: Widechar/Unicode Win32 APIs not used for file/dir access | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190069@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=45517&edit=1
ID: 45517
Comment by: dimagsv at f-m dot fm
Reported by: louis at steelbytes dot com
Summary: Widechar/Unicode Win32 APIs not used for file/dir
access
Status: Open
Type: Feature/Change Request
Package: *General Issues
Operating System: Win2003/XP/Vista
PHP Version: 5.2.6
Block user comment: N
Private report: N
New Comment:
Same on Windows 8.1 x64, PHP 5.6.4
Is there any changes will be in PHP 5.7 ?
Previous Comments:
------------------------------------------------------------------------
[2011-09-01 13:29:46] pajoye@php.net
There is no change and won't have any change in this area in php 5.3 or 5.4.
------------------------------------------------------------------------
[2011-09-01 13:07:52] dkrysiak at o2 dot pl
Same on Windows 2008 Server, PHP 5.3.8
------------------------------------------------------------------------
[2008-07-15 07:34:02] louis at steelbytes dot com
Description:
------------
PHP doesn't use the Widechar/Unicode Win32 APIs for file/dir access
Reproduce code:
---------------
create a file or folder which has chars in it's name that are outside the code page of the
iis/appache user acount. eg, try sticking greek and russian and chinese chars in one file name.
now try and read/write/dirlist that file.
is this a real problem? yes. although the above example is a bit contrived this is a problem for me.
I guess I will have to write my own php extension to do file handling as I'm not betting this
will be fixed until php6?
Expected result:
----------------
for php on NT family to use the Widechar/Unicode funcs. ie, CreateFileW(...) instead of
CreateFileA(...)
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=45517&edit=1