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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 17, 2013 at 7:17 AM, Pierre Joye <pierre.php@xxxxxxxxx> wrote:
> On Fri, Aug 16, 2013 at 9:40 AM, R. S. <rsk82@xxxxxxxx> wrote:
>> Hello Pierre,
>>
>> Friday, August 16, 2013, 5:38:01 AM, you wrote:
>>
>>> and  'TESTUN~1.PHP' has unicode, created using CreateFileW with
>>> 'testunicode-ßäü123-öâ.php' as path. Fetch the 8.3 path and use it to
>>> open the file using php, works. In other words. exactly what your COM
>>> script does. Now, why you come to the conclusion that PHP can't open
>>> 8.3 path is a misery to me right now. It can and without issue.
>>
>> It still seems you didn't read my examples, but this time your fresh mind
>> actually helped narrowing the problem and thanks
>> for that !
>>
>> Indeed 'testunicode-ßäü123-öâ.php' works without
>> any issue. It seems that only some character ranges
>> are making php unable to get to the file, like russian or greek.
>>
>> if you make files like:
>> testunicode-Ελλάδα or testunicode-Россия
>>
>> Then php can't get handle to these files with errors like:
>>
>> Warning: fopen(C:\TESTUN~3.PHP): failed to open stream: Invalid argument
>> in C:\test.php on line 7
>
>
>
>> So the problem is even stranger.
>
> Ok, now I can reproduce it. That's actually weird and have to look at it :)

Ok, it looks like a found a bug, not in php but in the windows API.
Which PHP version do you use (newest version uses a different CRT)?

-- 
Pierre

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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux