perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: modperl_require_module failing silently
Date Mon, 26 May 2003 03:39:14 GMT
Geoffrey Young wrote:
> hi again
> 
>   I'm finding it very difficult to resolve module errors without this 
> patch.

Can't do that "fix", because modperl_handler_resolve calls modperl_mgv_resolve 
and handles errors by itself, sending it as a part of the error, which on the 
way logs the error. Your patch will cause the error to be logged twice.

Can you show a simple case where you have this problem with? is it because 
modperl_handler_resolve is called before server has been started?

> Index: src/modules/perl/modperl_mgv.c
> ===================================================================
> RCS file: /home/cvspublic/modperl-2.0/src/modules/perl/modperl_mgv.c,v
> retrieving revision 1.25
> diff -u -r1.25 modperl_mgv.c
> --- src/modules/perl/modperl_mgv.c      17 Apr 2003 08:04:47 -0000      
> 1.25
> +++ src/modules/perl/modperl_mgv.c      23 May 2003 14:29:03 -0000
> @@ -264,7 +264,7 @@
>          MP_TRACE_h(MP_FUNC,
>                     "package %s not defined, attempting to load\n", name);
> 
> -        if (modperl_require_module(aTHX_ name, FALSE)) {
> +        if (modperl_require_module(aTHX_ name, TRUE)) {



-- 


__________________________________________________________________
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


Mime
View raw message