Re: php can't resolve 8.3 paths to unicode filenames, is that expected ?

Pierre Joye <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <CAEZPtU6bgps=mDcie26zkDO2fXFNXZNF+nTqP_GY+P=iGTP14w@mail.gmail.com>
hi!

On Wed, Aug 14, 2013 at 7:15 PM, R. S. <[email protected]> wrote:
> Hello Pierre,
>
> Wednesday, August 14, 2013, 10:27:24 AM, you wrote:
>
>> COM is not PHP: You are calling the FileSystemObject's GetFile via COM
>> which uses unicode APIs under the hood. Nothing to do with PHP
>> streams.
>
> Yes, I know that, and here COM has no issues with unicode.
>
> But in my example COM is irrelevant it is used only to get
> short path, to be sure that it leads to the unicode file.
> You can create unicode file on your own and then try
> to open it using short or long paths using any script you like.
> And you see that only PHP among all scripting languages in incapable
> of getting handle to such files. Even the software that doesn't know
> a byte about unicode is capable of doing that but not PHP.

Short paths work just fine. Not sure what goes wrong with the COM APIs
or this test script.

But:

$shortpath= 'TESTUN~1.PHP';
$handle = fopen($shortpath, 'w');

works just fine.

Cheers,
-- 
Pierre

@pierrejoye | http://www.libgd.org

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.