Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74895 invoked from network); 10 Nov 2009 18:49:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2009 18:49:33 -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 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:40819] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/C6-38546-BB5B9FA4 for ; Tue, 10 Nov 2009 13:49:33 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id E1326E11E9; Tue, 10 Nov 2009 10:47:20 -0800 (PST) Received: from [192.168.16.66] ([192.168.16.66]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Nov 2009 10:49:28 -0800 Message-ID: <4AF9B5B8.90104@zend.com> Date: Tue, 10 Nov 2009 10:49:28 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Guilherme Blanco CC: Lukas Kahwe Smith , PHP Developers Mailing List References: <413588E2-8AC8-49F7-B7BF-97BEFB0A71E4@pooteeweet.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-OriginalArrivalTime: 10 Nov 2009 18:49:28.0414 (UTC) FILETIME=[881257E0:01CA6236] Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] alternative to the fopen() hack in autoloaders From: stas@zend.com (Stanislav Malyshev) Hi! >> In order to solve the above issues this RFC proposes the addition of a= new >> construct/function for now called =E2=80=9Cautoload_include=E2=80=9D f= or lack of a better >> name that largely behaves like the =E2=80=9Cinclude=E2=80=9D does toda= y with the following >> differences, that when the include failed because of a missing file no >> warning is raised and php null is returned. Maybe it'd be easier to just add parameter to file_exists that allows it=20 to use include_path? I think that's at least what ZF is trying to do=20 with that fopen - it tries to find out if such file exists in the path=20 and if so - include it. I don't think you need to create special language construct for that -=20 you can shut off warning with @. --=20 Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com