Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35468 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2999 invoked by uid 1010); 14 Feb 2008 01:11:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2984 invoked from network); 14 Feb 2008 01:11:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2008 01:11:01 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:46489] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/CA-24174-22593B74 for ; Wed, 13 Feb 2008 20:10:59 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 72AAFC0F75D; Wed, 13 Feb 2008 18:10:56 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 21ECBC0F75B; Wed, 13 Feb 2008 18:10:55 -0700 (MST) Message-ID: <47B39543.6020200@chiaraquartet.net> Date: Wed, 13 Feb 2008 19:11:31 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Lars Strojny CC: PHP Internals List References: <1202917630.25345.6.camel@localhost> In-Reply-To: <1202917630.25345.6.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [RFC] prepend_include_path()/append_include_path() From: greg@chiaraquartet.net (Gregory Beaver) Lars Strojny wrote: > Hi everyone, > > the following patch[1] adds the functions append_include_path() and > prepend_include_path(). These function are there to make include path > adjustments easier than it is. Especially append_include_path() is what > is done most of the time. > > The current patch is in a bit hacky state, as I have my doubts whether > storing the include paths as a string is a good idea. I want to gain > some feedback for this addition first before I invest more work on it. > > [1] http://lars.schokokeks.org/php/include_path_modifiers-1.diff -1 from me, it doesn't reduce code size, and speed is not a huge issue since it is likely to be called once per script, maximum. Greg