On Jul 31, 2006, at 10:40, David Wheeler wrote:

With Apache::SizeLimit 0.9, I'm seeing this error:

[Sun Jul 30 01:19:29 2006] [error] Can't call method "child_terminate" on an undefined value at /usr/local/lib/perl5/ site_perl/5.8.8/Apache/SizeLimit.pm line 125.

To answer my own post, here's a patch that fixes this issue:

--- lib/Apache/SizeLimit.pm.old 2006-07-31 14:11:48.000000000 -0700
+++ lib/Apache/SizeLimit.pm     2006-07-31 14:12:11.000000000 -0700
@@ -92,7 +92,7 @@
     # PerlCleanupHandler phase. That means that there's no way to use
     # $r->get_handlers() to check the results of calling this method.
     $r->push_handlers( 'PerlCleanupHandler',
-                       sub { $class->_exit_if_too_big() } );
+                       sub { $class->_exit_if_too_big(shift) } );
     $r->pnotes( size_limit_cleanup => 1 );
}


Best

David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to