Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48707 invoked by uid 1010); 13 Feb 2008 22:12:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48687 invoked from network); 13 Feb 2008 22:12:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2008 22:12:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.190 rv-out-0910.google.com Received: from [209.85.198.190] ([209.85.198.190:64502] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/B2-24174-36B63B74 for ; Wed, 13 Feb 2008 17:12:57 -0500 Received: by rv-out-0910.google.com with SMTP id k15so111000rvb.23 for ; Wed, 13 Feb 2008 14:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=0CoZFXVT+0vPtxaBzmWov2OhKyLuPomDziIO/FKT4mk=; b=RollT1F1yZVu+2RA6fok6I+XU7MnTWCjzLnyVUZ2Bw3Tg/PB/5pqWwLE4LP7pdI6odsNgQ4FG+Nnq0ETXxxUUi60csJSo/PCgUky9UO67fIN8p3dSb6Csy6Z5/QCLA/5gvPM/JjmDqmwE5gULjNPPq05103devpSM4mfaVnuPAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gG6ZVkHtWovhcodzVxXvBSu2uT1iNDE2TBrrgHFi+4r4LFDjaVFXfkm9sibR+P642WMbuTv8dMTx4jqK/tAY2FtMz5GiI4ll3tLT/8g+5R9WdjIVlONWozoh0AhLIAzbOP1qCmGioKKshARoVedXgaUR5teFOAHxbWGbuLe79rg= Received: by 10.141.62.15 with SMTP id p15mr357327rvk.159.1202940766456; Wed, 13 Feb 2008 14:12:46 -0800 (PST) Received: by 10.141.70.21 with HTTP; Wed, 13 Feb 2008 14:12:46 -0800 (PST) Message-ID: Date: Wed, 13 Feb 2008 23:12:46 +0100 To: "Markus Fischer" Cc: "Lars Strojny" , "PHP Internals List" In-Reply-To: <47B36A01.4020706@fischer.name> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1202917630.25345.6.camel@localhost> <47B36A01.4020706@fischer.name> Subject: Re: [PHP-DEV] [RFC] prepend_include_path()/append_include_path() From: pierre.php@gmail.com ("Pierre Joye") On Feb 13, 2008 11:06 PM, Markus Fischer wrote: > Pierre Joye wrote: > > On Feb 13, 2008 4:47 PM, 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. > > > > I don't think we need two new functions for: > > > > set_include_path('/some/path' . DIRECTORY_SEPARATOR . get_include_path()); > > set_include_path(. get_include_path() . DIRECTORY_SEPARATOR . '/some/path' ); > > Gotcha, it needs to be PATH_SEPARATOR, no? That would be a reason to have these functions (yes, path_separator is required) ;-) -- Pierre http://blog.thepimp.net | http://www.libgd.org