Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29011 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48153 invoked by uid 1010); 25 Apr 2007 07:33:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48137 invoked from network); 25 Apr 2007 07:33:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2007 07:33:30 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:21849] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/28-57524-7440F264 for ; Wed, 25 Apr 2007 03:33:29 -0400 Received: (qmail 9353 invoked from network); 25 Apr 2007 07:33:25 -0000 Received: from unknown (HELO ?127.0.0.1?) (10.1.3.179) by internal.zend.office with SMTP; 25 Apr 2007 07:33:25 -0000 Message-ID: <462F0442.7080609@zend.com> Date: Wed, 25 Apr 2007 10:33:22 +0300 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Antony Dovgal CC: "dletz@blog.de" , "internals@lists.php.net" References: <462DD77B.7070006@zend.com> <462DE338.8000203@zend.com> In-Reply-To: <462DE338.8000203@zend.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] require_once From: stas@zend.com (Stanislav Malyshev) >> On my machine i get these results: >> Win32 (PHP 5.2.1 CLI) Windows has very slow filesystem layer (compared to Linux), unfortunately. Which means things that do more filesystem (like require_once that should resolve file pathes) are slower. Realpath cache should make it better to a measure. Anyway, the code you have sent is incorrect since it does not resolve and does not canonicalize pathnames. For example, on Windows it would consider names written in different case different file names (of course, this is only one problem of many). -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/