Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42311 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41771 invoked from network); 17 Dec 2008 21:46:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2008 21:46:36 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; 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:53722] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/EA-19668-C3379494 for ; Wed, 17 Dec 2008 16:46:36 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id ADD0C1EBC022; Wed, 17 Dec 2008 21:46:41 +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 pJ2IrknhKHVj; Wed, 17 Dec 2008 22:46:39 +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 EF8901EBC021; Wed, 17 Dec 2008 22:46:38 +0100 (CET) Cc: internals Mailing List Message-ID: <025EE4A9-DCB9-4B66-9D87-27174E0AF81A@pooteeweet.org> To: Gregory Beaver In-Reply-To: <493ECBFD.6060407@chiaraquartet.net> 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 22:44:11 +0100 References: <493ECBFD.6060407@chiaraquartet.net> 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 09.12.2008, at 20:50, Gregory Beaver wrote: > file, it should only be used to find existing files. In any case, 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. > We should simply add file_resolve_path() function which can be used to > locate a file. Since we have stream_resolve_include_path(), I guess we can make this suggestion a reality. Deprecate the ability to mess with the include path in fopen()/ file_get_contents() or any other method/function that can do write operations. this btw imho also includes the cases when these functions (for example fopen()) are using in read mode. Speak now or forever hold your peace .. regards, Lukas Kahwe Smith mls@pooteeweet.org