Bug #65358 [Opn->Csd]: php can't handle 8.3 names of files which have long names with unicode in them
Edit report at https://bugs.php.net/bug.php?id=65358&edit=1
ID: 65358
Updated by: cmb@php.net
Reported by: rsk82 at live dot com
Summary: php can't handle 8.3 names of files which have long
names with unicode in them
-Status: Open
+Status: Closed
Type: Bug
Package: Filesystem function related
Operating System: Windows XP
PHP Version: 5.4.17
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This has been fixed in the meantime due to UTF-8 path support[1].
[1] <https://www.php.net/manual/en/migration71.windows-support.php#migration71.windows-support.long-and-utf8-path>
Previous Comments:
------------------------------------------------------------------------
[2015-01-29 17:43:12] henry dot fai dot hang dot chan at gmail dot com
Would this be fixed in time for PHP 7?
------------------------------------------------------------------------
[2013-10-04 09:11:38] ku at digitaldolphins dot jp
As a workaround, you can trick php if you allow using ShortName instead of LongName.
You'll need to tweak tsrm_realpath_r.
I'll post a patch to avoid this issue.
Thanks
------------------------------------------------------------------------
[2013-08-19 06:34:08] pajoye@php.net
This is not a duplicate bug of the unicode paths support.
The problem here, in this exact (maybe other encoding could be affected but same
cause then) issue, is that the CRT call FindFirstFileW instead of FindFirstFileA,
despite that _UNICODE is defined.
Patch on its way.
------------------------------------------------------------------------
[2013-07-30 17:13:15] rsk82 at live dot com
Yes, but there are different things to add support for full fledged unicode names on windows and
support only for shortened 8.3 dos paths that have no unicode chars in them. I thought that such
names would by completely transparent to php like they are for 16 apps. This is not exact duplicate.
------------------------------------------------------------------------
[2013-07-30 16:48:43] ab@php.net
This the general issue with non 7-bit encoded filenames, so duplicate of bug
#64699, see also bug #61315.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65358
--
Edit this bug report at https://bugs.php.net/bug.php?id=65358&edit=1
Thread (9 messages)