Posted by Andy Hassall on 12/31/05 20:44
On Sat, 31 Dec 2005 18:20:11 +0000, Colin Fine <news@kindness.demon.co.uk>
wrote:
>> The reason for the change was for __AutoLoad(). Since most file
>> systems where PHP runs is case-sensitive you need to get the proper
>> case of the class to map it to a file name to load.
>>
>> That's the reason for that change.
>
>So what happens if you use it on an OS with case-insensitive filenames?
Then it picks up the file with the capitalisation matching the class name, but
it's then not portable.
The main case-insensitive filesystems (FAT32, NTFS) are still case-preserving
anyway, so a file still has a single canonical name capitalised in a specific
way.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|