Bug #65358 [Asn->Opn]: php can't handle 8.3 names of files which have long names with unicode in them

From: Date: Tue, 24 Oct 2017 07:37:05 +0000
Subject: Bug #65358 [Asn->Opn]: php can't handle 8.3 names of files which have long names with unicode in them
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212122@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65358&edit=1

 ID:                 65358
 Updated by:         kalle@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:             Assigned
+Status:             Open
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Windows XP
 PHP Version:        5.4.17
-Assigned To:        pajoye
+Assigned To:        
 Block user comment: N
 Private report:     N



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)

« previous php.bugs (#212122) next »