php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45517 Widechar/Unicode Win32 APIs not used for file/dir access
Submitted: 2008-07-15 07:34 UTC Modified: 2016-08-08 09:50 UTC
Votes:17
Avg. Score:4.6 ± 0.7
Reproduced:16 of 16 (100.0%)
Same Version:5 (31.2%)
Same OS:10 (62.5%)
From: louis at steelbytes dot com Assigned: ab (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.6 OS: Win2003/XP/Vista
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: louis at steelbytes dot com
New email:
PHP Version: OS:

 

 [2008-07-15 07:34 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-01 13:07 UTC] dkrysiak at o2 dot pl
Same on Windows 2008 Server, PHP 5.3.8
 [2011-09-01 13:29 UTC] pajoye@php.net
-Package: Feature/Change Request +Package: *General Issues
 [2011-09-01 13:29 UTC] pajoye@php.net
There is no change and won't have any change in this area in php 5.3 or 5.4.
 [2015-01-20 09:26 UTC] 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 ?
 [2016-08-08 09:50 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2016-08-08 09:50 UTC] ab@php.net
Fixed in PHP 7.1

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC