#45517 [NEW]: PHP doesn't use the Widechar/Unicode Win32 APIs for file/dir access
From: louis at steelbytes dot com
Operating system: Win2003/XP/Vista
PHP version: 5.2.6
PHP Bug Type: *Directory/Filesystem functions
Bug description: PHP doesn't use the Widechar/Unicode Win32 APIs for file/dir access
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 bug report at http://bugs.php.net/?id=45517&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45517&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45517&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45517&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45517&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45517&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45517&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45517&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45517&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45517&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45517&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45517&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45517&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45517&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45517&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45517&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45517&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45517&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45517&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45517&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45517&r=mysqlcfg
Thread (5 messages)
- louis at steelbytes dot com