Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11339 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96877 invoked by uid 1010); 19 Jul 2004 09:27:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96837 invoked from network); 19 Jul 2004 09:27:35 -0000 Received: from unknown (HELO intranet.euneco.com) (213.246.71.130) by pb1.pair.com with SMTP; 19 Jul 2004 09:27:35 -0000 Received: from grafik2 (unknown [192.168.1.30]) by intranet.euneco.com (Postfix) with ESMTP id BBABA54377; Mon, 19 Jul 2004 11:27:33 +0200 (CEST) Date: Mon, 19 Jul 2004 10:56:02 +0200 X-Mailer: The Bat! (v2.01) Personal X-Priority: 3 (Normal) Message-ID: <4431765562.20040719105602@vrana.cz> To: internals@lists.php.net Cc: Michele Locati MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Case sensitivity of require_once From: vrana@php.net (Jakub Vrana) File a.php is required twice with this code on Windows: 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 estrndu= p(inc_filename->value.str.val, inc_filename->value.str.len); } =20 +#ifdef ZEND_WIN32 + zend_str_tolower(file_handle.opened_pat= h, 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_hand= le TSRMLS_CC); --=20 Jakub Vrana