You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2006/07/04 02:38:23 UTC

Re: PerlOptions None doesn't work

Anders Kaseorg wrote:
> When I tried to set PerlOptions None within a Directory or VirtualHost
> directive, I get
>   "Invalid per-directory PerlOption: None"
> or
>   "Invalid per-server PerlOption: None"
> 
> I see that MpDir_f_NONE is defined to be 0, the same value that
> modperl_flags_lookup_dir returns to signal an error. That clearly won't work.
> 
> Anders
Your absolutely right, I'm going to repost this to dev@p.a.o so we can discuss a good solution.

We can just change the value from 0x000000 to something else as that would break
compatability with other things....

src/modules/perl/modperl_flags.h:#define MpSrv_f_NONE 0x00000000
src/modules/perl/modperl_flags.h:#define MpSrvNONE(p)  (MpSrvFLAGS(p) & MpSrv_f_NONE)
src/modules/perl/modperl_flags.h:#define MpSrvNONE_On(p)  (MpSrvFLAGS(p) |= MpSrv_f_NONE)
src/modules/perl/modperl_flags.h:#define MpSrvNONE_Off(p) (MpSrvFLAGS(p) &= ~MpSrv_f_NONE)
src/modules/perl/modperl_flags.c:        if (strEQ(str, "None"))              return MpSrv_f_NONE;

btw, if you didn't know this is coming from lib/ModPerl/Code.pm::generate_flags()



-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: PerlOptions None doesn't work

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Philip M. Gollucci wrote:
> Anders Kaseorg wrote:
>> When I tried to set PerlOptions None within a Directory or VirtualHost
>> directive, I get
>>   "Invalid per-directory PerlOption: None"
>> or
>>   "Invalid per-server PerlOption: None"
>>
>> I see that MpDir_f_NONE is defined to be 0, the same value that
>> modperl_flags_lookup_dir returns to signal an error. That clearly
>> won't work.
>>
>> Anders
> Your absolutely right, I'm going to repost this to dev@p.a.o so we can
> discuss a good solution.
http://svn.apache.org/viewvc?rev=419497&view=rev
http://svn.apache.org/viewvc?rev=419498&view=rev

That should do it.  (One of these days I get one without a typo the first time)



-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org