Edit report at https://bugs.php.net/bug.php?id=63593&edit=1
ID: 63593
User updated by: john dot peterson10 at gmail dot com
Reported by: john dot peterson10 at gmail dot com
Summary: scandir return "?" in place of unicode letter in
Windows httpd.
Status: Duplicate
Type: Bug
Package: *Unicode Issues
Operating System: Windows
PHP Version: 5.5Git-2012-11-23 (snap)
Block user comment: N
Private report: N
New Comment:
php test.php # return "????"
%cygwin%/bin/php test.php # return "ãã¡ã¤ã«"
Previous Comments:
------------------------------------------------------------------------
[2012-11-24 12:34:23] john dot peterson10 at gmail dot com
Please comment on the fact that CLI and httpd return different data.
Please post the relevant source file and line.
------------------------------------------------------------------------
[2012-11-24 12:20:05] [email protected]
I don't have it at hand but if you search for 'windows file unicode', you will
find a couple with work around (tricky but possible).
------------------------------------------------------------------------
[2012-11-24 11:59:55] john dot peterson10 at gmail dot com
What is the duplicate ID?
------------------------------------------------------------------------
[2012-11-24 11:56:09] [email protected]
there is no Unicode support for file system functions in PHP. There is already
a
feature request for that > mark as duplicated.
------------------------------------------------------------------------
[2012-11-23 23:06:22] john dot peterson10 at gmail dot com
Description:
------------
Reproduce
Program
httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
php-5.5-ts-windows-vc9-x86-r64788e3.zip
Config
httpd-2.2.22-win32-x86-openssl-0.9.8t.msi/program files/Apache Software
Foundation/Apache2.2/conf/original/httpd.conf.in
php-5.5-ts-windows-vc9-x86-r64788e3.zip/php.ini-development
Command
# cd `httpd ServerRoot`
touch ãã¡ã¤ã«
curl -v 'http://server/test.php' # return "????"
php test.php # return "ãã¡ã¤ã«"
Test script:
---------------
<?php header("content-type: text/plain; charset=utf-8"); print_r(scandir("."));
?>
Expected result:
----------------
See above.
Actual result:
--------------
See above.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63593&edit=1