Re: is_file and file_exists not case sensitive?

From: Date: Sat, 21 Mar 2020 12:28:41 +0000
Subject: Re: is_file and file_exists not case sensitive?
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-327072@lists.php.net to get a copy of this message
On 21/03/2020 09:25, Christoph M. Becker wrote:
On 21.03.2020 at 02:37, Andrey Repin wrote:
Greetings, Lester Caine. In reply to Your message dated Wednesday, March 18, 2020, 1:03:49,
On 17/03/2020 19:11, Sam Hobbs wrote:
You still did not answer the question of what OS. The answer for Windows is not simple. So before doing exotic testing, you really should look at the documentation for the relevant OS.
He said he is on MacOS and the other answers align up with that. The problem is that while Windows is reliably case insensitive and crap on unicode file names,
That's not really true. Windows can be configured for anything you wish, and UNICODE names were a problem of PHP, which was solved not-very-recently in V7.
More precisely, as of PHP 7.1.0: <https://www.php.net/manual/en/migration71.windows-support.php#migration71.windows-support.long-and-utf8-path>.
But is far as I am aware windows is STILL using 16 bit per character wide string format for file names along with somewhat unreliable case conversions on the basic ASCII character subset? While we can use UTF8 characters in Linux file names they do not map through to the windows file name? This is nothing to do with PHP ... we just have to work out how to live with it ... -- Lester Caine - G8HFL ----------------------------- Contact - https://lsces.uk/wiki/Contact L.S.Caine Electronic Services - https://lsces.uk Model Engineers Digital Workshop - https://medw.uk Rainbow Digital Media - https://rainbowdigitalmedia.uk

« previous php.general (#327072) next »