Re: Code fix/suggestion after MP2 update

[prev] [thread] [next] [Date index for 2005/04/30]

From: Stas Bekman
Subject: Re: Code fix/suggestion after MP2 update
Date: 22:42 on 30 Apr 2005
cfaust-dougot wrote:

>>>>   return $r->dir_config->get('ApacheReturnOk');
>>>>  }
>>>>
>>>>But that didn't work, got an error of Argument "Apache::REDIRECT" isn't numeric, I also can't do it within any sort of "if" statement in the script itself as I will get the error of "Apache::* not allowed while script subs...".
>>>>
>>>>Any suggestions?
> 
> 
>>That's funky :) But you can't do that. Since those constants are really
>>subroutines. What you are returning are strings, so you will need to eval
>>those before using those. The best run the script that will adjust the
>>constants: http://people.apache.org/~geoff/fixme
> 
> 
> Thanks Stas, I was hoping to avoid any sort of preprocessing but if
> that's what it takes so you guys can keep producing  lighting in a
> bottle, I'm not going to complain.

Why preprocessing? Just replace those with Apache::Const::OK or whatever 
is needed. See the fixme script above.


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Code fix/suggestion after MP2 update
cfaust-dougot 13:27 on 30 Apr 2005

Re: Code fix/suggestion after MP2 update
Stas Bekman 15:53 on 30 Apr 2005

RE: Code fix/suggestion after MP2 update
cfaust-dougot 21:57 on 30 Apr 2005

Re: Code fix/suggestion after MP2 update
Stas Bekman 22:42 on 30 Apr 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52