Req #45517 [Opn->Csd]: Widechar/Unicode Win32 APIs not used for file/dir access
| From: | ab@php.net | Date: | Mon, 08 Aug 2016 09:50:46 +0000 |
| Subject: | Req #45517 [Opn->Csd]: Widechar/Unicode Win32 APIs not used for file/dir access | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203061@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
Updated by: ab@php.net
Reported by: louis at steelbytes dot com
Summary: Widechar/Unicode Win32 APIs not used for file/dir
access
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: Win2003/XP/Vista
PHP Version: 5.2.6
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Fixed in PHP 7.1
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-01-20 09:26:46] dimagsv at f-m dot fm
Same on Windows 8.1 x64, PHP 5.6.4
Is there any changes will be in PHP 5.7 ?
------------------------------------------------------------------------
[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