Re: Case sensitivity of require_once

From: Date: Mon, 19 Jul 2004 13:04:01 +0000
Subject: Re: Case sensitivity of require_once
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-11350@lists.php.net to get a copy of this message
----- Original Message ----- From: "Stanislav Malyshev" <stas@zend.com> To: "Michele Locati" <michele@locati.it> Cc: <internals@lists.php.net> Sent: Monday, July 19, 2004 8:55 AM Subject: Re: [PHP-DEV] Case sensitivity of require_once > ML>>There's another thing you should note: under Windows it is possible to > ML>>specify file names in two ways: in the expanded (normal) way, and in a > ML>>short way (8.3 file naming compatible). > > I think there's a function in Win32 API which brings all these forms to > common base. you are thinking of GetShortPathName(). not bringing it to the same base per se, but perfectly usable in this case. GetFileInformationByHandle() and the nFileIndex{High,Low} elements of the returned struct could possibly be a more elegant way of doing this. afair, the latter does not require mucking with nt native api, though an extended version of the same call does. don't shoot me, this is from memory ;) paul

« previous php.internals (#11350) next »