Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11347 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11104 invoked by uid 1010); 19 Jul 2004 12:52:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10970 invoked from network); 19 Jul 2004 12:52:48 -0000 Received: from unknown (HELO vsmtp1.tin.it) (212.216.176.141) by pb1.pair.com with SMTP; 19 Jul 2004 12:52:48 -0000 Received: from 05-omnigate (82.48.22.149) by vsmtp1.tin.it (7.0.027) id 40F6DCB5000A8AD7; Mon, 19 Jul 2004 14:52:39 +0200 Message-ID: <200407191455520979.01375E52@mail.tin.it> In-Reply-To: <4e89b42604071903121e312e1c@mail.gmail.com> References: <4431765562.20040719105602@vrana.cz> <4e89b42604071903121e312e1c@mail.gmail.com> X-Mailer: Calypso Version 3.30.00.00 (4) Date: Mon, 19 Jul 2004 14:55:52 +0200 To: "Wez Furlong" , "Jakub Vrana" Cc: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Case sensitivity of require_once From: michele@locati.it ("Michele Locati") There's another thing you should note: under Windows it is possible to= specify file names in two ways: in the expanded (normal) way, and in a= short way (8.3 file naming compatible). For example: C:\Program Files\SomeFileName.ext could be specified also as C:\PROGRA~1\SOMEFI~1.EXT or even C:\PROGRA~1\SomeFileName.ext or C:\Program Files\SOMEFI~1.EXT If there exists two files, say "SomeFileNameA.ext" and "SomeFileNameB.ext",= they could be called also "SOMEFI~1.EXT" and "SOMEFI~2.EXT" Thank you for the whole great project you're bringing to us! Ciao Michele *********** In risposta al seguente messaggio *********** Il 19/07/2004 alle 11:12 Wez Furlong ha scritto: >Did you test require_once under PHP 5 yet? >(without your patch) > >--Wez. > >On Mon, 19 Jul 2004 10:56:02 +0200, Jakub Vrana wrote: >> File a.php is required twice with this code on Windows: >> > require_once "a.php"; >> require_once "A.php"; >> ?> >> >> Should I document this behavior or should patch similar to this be >> applied? >> >> Index: zend_execute.c >>= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> RCS file: /repository/Zend/Attic/zend_execute.c,v >> retrieving revision 1.316.2.38 >> diff -u -r1.316.2.38 zend_execute.c >> --- zend_execute.c 12 Jul 2004 17:47:32 -0000 1.316.2.38 >> +++ zend_execute.c 19 Jul 2004 08:48:44 -0000 >> @@ -2148,6 +2148,10 @@ >> file_handle.opened_path =3D >estrndup(inc_filename->value.str.val, inc_filename->value.str.len); >> } >> >> +#ifdef ZEND_WIN32 >> + >zend_str_tolower(file_handle.opened_path,= strlen(file_handle.opened_path)); >> +#endif >> + >> if >(zend_hash_add(&EG(included_files), file_handle.opened_path, >strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), >NULL)=3D=3DSUCCESS) { >> new_op_array =3D >zend_compile_file(&file_handle, >(EX(opline)->op2.u.constant.value.lval=3D=3DZEND_INCLUDE_ONCE?ZEND_INCLUDE:= ZEND_REQUIRE) TSRMLS_CC); >> >zend_destroy_file_handle(&file_handle TSRMLS_CC); >> >> -- >> Jakub Vrana >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >>