Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68435 invoked by uid 1010); 19 Jul 2004 13:08:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68411 invoked from network); 19 Jul 2004 13:08:07 -0000 Received: from unknown (HELO utopia.rusko.us) (207.44.144.89) by pb1.pair.com with SMTP; 19 Jul 2004 13:08:07 -0000 Received: from rusko (ool-44c0a1af.dyn.optonline.net [68.192.161.175]) by utopia.rusko.us (Sendmail) with SMTP id ED369BBBAB for ; Mon, 19 Jul 2004 09:25:22 -0400 (EDT) Message-ID: <1f5d01c46d90$dccc47f0$0200a8c0@rusko> To: References: <4431765562.20040719105602@vrana.cz> <4e89b42604071903121e312e1c@mail.gmail.com> <200407191455520979.01375E52@mail.tin.it> Date: Mon, 19 Jul 2004 09:04:01 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: [PHP-DEV] Case sensitivity of require_once From: paul@rusko.us ("Paul G") ----- Original Message ----- From: "Stanislav Malyshev" To: "Michele Locati" Cc: 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