Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11189 invoked from network); 17 Dec 2008 20:05:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2008 20:05:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:44420] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/74-19668-17B59494 for ; Wed, 17 Dec 2008 15:05:06 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 439891EBC022; Wed, 17 Dec 2008 20:05:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cJR0-qP2hYnm; Wed, 17 Dec 2008 21:05:09 +0100 (CET) Received: from [192.168.0.108] (77-58-151-147.dclient.hispeed.ch [77.58.151.147]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id E8B521EBC021; Wed, 17 Dec 2008 21:05:04 +0100 (CET) Cc: PHP Internals List Message-ID: <29AA2691-6BA7-42E8-86A0-3451F9231375@pooteeweet.org> To: Daniel Convissor In-Reply-To: <20081210183302.GA19304@panix.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 17 Dec 2008 21:02:30 +0100 References: <493ECBFD.6060407@chiaraquartet.net> <20081210183302.GA19304@panix.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: [PHP-DEV] problem with include_path and write-based file functions From: mls@pooteeweet.org (Lukas Kahwe Smith) On 10.12.2008, at 19:33, Daniel Convissor wrote: > Hi: > > On Tue, Dec 09, 2008 at 01:50:21PM -0600, Gregory Beaver wrote: >> I >> think allowing include_path to be used at all for file modification >> is >> horrendous, and think it should be deprecated and removed from PHP 6. > > I agree. > > To avoid compatibility issues between 5.2 and 5.3, it seems best > that the > behavior not change in 5.3, though an E_DEPRECATED should be raised. > Then remove the functionality from 6.0. which brings us back to the fact that we never added a proper way to be able to determine if a file exists in the include path or not. this is why a lot of people rely on fopen() for this. if we want to clean this up, its high time we offer a proper solution for this. and i am getting tired of the excuse, that file_exists() should not mess with the include path. so lets add a new function or whatever. but this is a common enough use case that we finally need to accept that we need to provide a good solution. regards, Lukas Kahwe Smith mls@pooteeweet.org