Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 73623 invoked from network); 6 Oct 2003 18:27:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Oct 2003 18:27:09 -0000 Received: (qmail 21916 invoked by uid 500); 6 Oct 2003 18:26:59 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 21900 invoked by uid 500); 6 Oct 2003 18:26:59 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 21886 invoked from network); 6 Oct 2003 18:26:58 -0000 Received: from unknown (HELO mail.logilune.com) (195.154.174.52) by daedalus.apache.org with SMTP; 6 Oct 2003 18:26:58 -0000 Received: from stason.org (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id CC03178E61; Mon, 6 Oct 2003 20:27:01 +0200 (CEST) Message-ID: <3F81B3F4.6080405@stason.org> Date: Mon, 06 Oct 2003 11:27:00 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Simon Flack Cc: dev@perl.apache.org Subject: Re: [PATCH] add PERL5LIB to @INC in the correct order References: <20030929175804.M19464@flacks.net> <3F79D055.5000008@stason.org> <20031003115732.M64900@flacks.net> In-Reply-To: <20031003115732.M64900@flacks.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Simon Flack wrote: > On Tue, 30 Sep 2003 11:49:57 -0700, Stas Bekman wrote > >>Simon Flack wrote: >> >>>Problem: >>> at the beggining of each request PERL5LIB is prepended to @INC in >>> reverse order. E.g.: >>> SetEnv PERL5LIB "one:two:three:four" >>> results in this: >>> @INC = ('four', 'three', 'two', 'one', '/usr....', '...'); >>> >>>Environment: >>> Tested with perl 5.6.1, mod_perl 1.27 and 1.28 >>> >>>A patch is attached to src/modules/perl/perl_util.c that adds the > > PERL5LIB > >>>variables in the correct order. >> >>Thank you Simon. >> >>It's a bug indeed. However I think we can't change this >>functionality in mp1 at this point, since it'll break other people's >>setups which rely on the current behavior. We probably should >>document this mis-feature. > > > Stas, > > That's fine. Although the behaviour has changed as recently as v1.27 where > previously the contents of PERL5LIB were pushed onto @INC rather that > unshifted. Well, the fix in 1.27 was different: PERL5LIB support now properly unshifts paths into @INC rather than push [Tatsuhiko Miyagawa ] before 1.27, PERL5LIB was getting appended to @INC, instead of being prepended. As a side effect it got the values in PERL5LIB reversed, but at least they are coming in before the hardcoded @INC. > The problem with the current behaviour is that you need a special case when > running under mod_perl. In our set up, we test our scripts as CGIs and with > Apache::Registry and it's nice to be able to set PERL5LIB in one place rather > than two. On the second thought, chances are that nobody has been using a multiple-paths PERL5LIB, otherwise they would have complained like you did. So if nobody objects and we agree that the current behavior is buggy, +1 for your patch. So what do you think, fix it? or document it? and of course need to fix that in mp2. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org