Philippe M. Chiasson wrote:
Mark wrote:

I have a typical situation, with a Registry script that use's
a bunch of modules.  After Apache::Reload reloads the first module,
I get errors suggesting that the other loaded modules have been lost.

To illustrate, it is like this (fake example):

Script:

  #!/usr/bin/perl

 use Fubar;
 use Snafu;

 $f = Fubar->new()
 $s = Snafu->new()

I run once, then 'touch /path/to/Fubar.pm'

Then I run from client, and I get error:

  Can't locate object method "new" via package "Snafu" at ...

Makes no sense to me?  Any ideas?    Same code on Apache 1.3 no problem.
My Reload config is:

PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "Fubar"
PerlSetVar ReloadDebug On

And I also have both Fubar and Snafu in my Apache PerlRequire file.


What does Apache2::Reload say in your error_log ?

The expected:

  Apache2::Reload: Checking mtime of Fubar.pm
  Apache2::Reload: process 18010 reloading Fubar from Fubar.pm

plus a bunch of these:

  Prototype mismatch: sub Fubar::constant_as_string: none vs ($)


Related?

Mark

Reply via email to