Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35504 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87543 invoked by uid 1010); 14 Feb 2008 23:45:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87528 invoked from network); 14 Feb 2008 23:45:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2008 23:45:10 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:3412] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/D8-21909-482D4B74 for ; Thu, 14 Feb 2008 18:45:09 -0500 Received: (qmail 76555 invoked by uid 98); 14 Feb 2008 23:46:35 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/5809. Clear:RC:1(127.0.0.1):. Processed in 0.5452 secs); 14 Feb 2008 23:46:35 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 14 Feb 2008 23:46:33 -0000 Received: from 98.193.37.55 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 14 Feb 2008 17:46:33 -0600 (CST) Message-ID: <46684.98.193.37.55.1203032793.squirrel@www.l-i-e.com> In-Reply-To: <1202917630.25345.6.camel@localhost> References: <1202917630.25345.6.camel@localhost> Date: Thu, 14 Feb 2008 17:46:33 -0600 (CST) To: "Lars Strojny" Cc: "PHP Internals List" Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] [RFC] prepend_include_path()/append_include_path() From: ceo@l-i-e.com ("Richard Lynch") On Wed, February 13, 2008 9:47 am, 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 Seems kinda silly, really, since one can just do: set_include_path("foo:" . include_path()); set_include_path(include_path() . ":bar"); Okay, you need to use PATH_SEPARATOR and maybe you'd want to be sure you're not adding the same path twice in a really fancy version... But even that wouldn't be 100% with symlinks or other funkiness like using "/foo/bar//baz/"... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?