Re: register_cleanup on mod_perl 2.0

2003-03-05 Thread Stas Bekman
Stas Bekman wrote: Denis Banovic wrote: Hi! I've a script that looks like this: if ($runnung_on_mod_perl) { Apache->request->register_cleanup(\&init_globals); } Under mod_perl 1.0 works fine with Apache::Registry. Can someone give me an Example how to make a register_cleanup

Re: register_cleanup on mod_perl 2.0

2003-03-05 Thread Stas Bekman
Denis Banovic wrote: Hi! I've a script that looks like this: if ($runnung_on_mod_perl) { Apache->request->register_cleanup(\&init_globals); } Under mod_perl 1.0 works fine with Apache::Registry. Can someone give me an Example how to make a register_cleanup with mod_p

register_cleanup on mod_perl 2.0

2003-03-05 Thread Denis Banovic
Hi! I've a script that looks like this: if ($runnung_on_mod_perl) { Apache->request->register_cleanup(\&init_globals); } Under mod_perl 1.0 works fine with Apache::Registry. Can someone give me an Example how to make a register_cleanup with mod_perl 2? Thanks a lot Denis

Re: register_cleanup

2003-02-28 Thread Stas Bekman
Denis Banovic wrote: Hi! I'm trying to migrate some stuff from mod_perl 1. I've read the tutorial on perl.apache.org but it didn't help. I've a perl script that looks like this: if ($runnung_on_mod_perl) { Apache->request->register_cleanup(\&init_globals); }

register_cleanup

2003-02-28 Thread Denis Banovic
Hi! I'm trying to migrate some stuff from mod_perl 1. I've read the tutorial on perl.apache.org but it didn't help. I've a perl script that looks like this: if ($runnung_on_mod_perl) { Apache->request->register_cleanup(\&init_globals); } Under mod_p

Re: mp2/httpd2 perlio test fail & register_cleanup CGI.pm error

2002-11-12 Thread Philip Burrow
I touched and chmodded them appropriately. > Also in the future please use t/REPORT script to report problems, as > explained here: > http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems Sorry, I'll do this from now on. > > ModPerl::Registry: Can't loca

Re: mp2/httpd2 perlio test fail & register_cleanup CGI.pm error

2002-11-11 Thread Stas Bekman
as explained here: http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems > Secondly, I get this error in the log when I try to > run a CGI that uses CGI.pm: > > ModPerl::Registry: Can't locate object method "register_cleanup" via package > "Apache::Reques

mp2/httpd2 perlio test fail & register_cleanup CGI.pm error

2002-11-05 Thread Philip Burrow
other tests are fine. Secondly, I get this error in the log when I try to run a CGI that uses CGI.pm: ModPerl::Registry: Can't locate object method "register_cleanup" via package "Apache::RequestRec" at /usr/local/lib/perl5/5.8.0/CGI.pm line 270. The CGI in question works fin

Re: [BUG?] PerlSetVar in .htaccess segfaults w/ register_cleanup()

2002-05-09 Thread Stas Bekman
D.Kreft wrote: ... > I am greeted with Netcape's "Document contains no data" error dialog > box, and a segfault notice in the error log: > >[Thu May 9 09:19:52 2002] [notice] child pid 25420 exit \ >signal Segmentation fault (11) ... > Does anyone have any ideas about what's going wrong

Re: Can't solve the CGI/pm "Can't call register_cleanup" problem

2001-07-31 Thread Ron Savage
Fran See below. Cheers Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html > use CGI qw(-compile :all); There's a typo in the book. Chop '-compile'.

Re: Can't solve the CGI/pm "Can't call register_cleanup" problem

2001-07-30 Thread Stas Bekman
On Tue, 31 Jul 2001, Fran Fabrizio wrote: > > Hello, > > I've just installed a mod_perl enabled Apache and I am trying to configure > it. I ran into the "can't call register_cleanup on an undefined value" > while I was trying out the sample startup.pl fi

Can't solve the CGI/pm "Can't call register_cleanup" problem

2001-07-30 Thread Fran Fabrizio
Hello, I've just installed a mod_perl enabled Apache and I am trying to configure it. I ran into the "can't call register_cleanup on an undefined value" while I was trying out the sample startup.pl file in the "Writing Apache Modules in Perl and C" book. I

Re: Problem with $r->register_cleanup()

2001-06-14 Thread Doug MacEachern
On Wed, 7 Feb 2001 [EMAIL PROTECTED] wrote: > Hi, > > I just ran into a problem with $r->register_cleanup() only sometime beeing > called. > > This is mod_perl 1.24_01, perl 5.6.0, apache 1.3.14 compiled with gcc 5.6.0 on > AIX 4.3.3. > > Here's a samp

Antwort: Re: Problem with $r->register_cleanup()

2001-02-08 Thread Michael . Jacob
There are no other handlers besides my own (content and auth) and the core apache... Also, I'd think that every reload of a page (that get's served by the same Apache child) should execute the same code and handlers with the same result---but here's the register_cleanup sometimes

Re: Problem with $r->register_cleanup()

2001-02-07 Thread Robert Landrum
Is it possible that another handler (such as CGI, or parsed-html) is taking over before yours and exiting or returning OK. Rob >Hi, > >I just ran into a problem with $r->register_cleanup() only sometime beeing >called. > >This is mod_perl 1.24_01, perl 5.6.0, apache 1.3

Problem with $r->register_cleanup()

2001-02-07 Thread Michael . Jacob
Hi, I just ran into a problem with $r->register_cleanup() only sometime beeing called. This is mod_perl 1.24_01, perl 5.6.0, apache 1.3.14 compiled with gcc 5.6.0 on AIX 4.3.3. Here's a sample code (snippet): sub handler { # PerlTransHandler my $r = shift; $r->register_clean

RE: push_handlers (was: PerlCleanupHandler vs register_cleanup)

2000-08-24 Thread Geoffrey Young
Subject: push_handlers (was: PerlCleanupHandler vs register_cleanup) > > > While we're on the subject of handlers, if > I have > PerlLogHandlers moda modb modc > in my conf file > and I do > $r->push_handlers('PerlLogHandler', \&d); >

push_handlers (was: PerlCleanupHandler vs register_cleanup)

2000-08-24 Thread Paul G. Weiss
that the stacked log handlers run? -P > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 24, 2000 12:47 PM > To: Paul G. Weiss > Cc: modperl > Subject: Re: PerlCleanupHandler vs register_cleanup > > > On Thu, 24 Au

Re: PerlCleanupHandler vs register_cleanup

2000-08-24 Thread Stas Bekman
On Thu, 24 Aug 2000, Paul G. Weiss wrote: > What is the difference between doing > $r->push_handlers('PerlCleanupHandler', \&function); > and > $r->register_cleanup(\&function); The same: http://www.modperl.com/book/chapters/ch9.html#Server_Core_Func

PerlCleanupHandler vs register_cleanup

2000-08-24 Thread Paul G. Weiss
What is the difference between doing $r->push_handlers('PerlCleanupHandler', \&function); and $r->register_cleanup(\&function);

Re: $r->register_cleanup limits (Problem Solved)

2000-06-10 Thread Jim Woodgate
Doug MacEachern writes: > there's no limit the number of cleanups you can register, but i would > still push the sub {}'s into an array and register a single cleanup to > iterate over them. you're right that wasn't the problem, I was passing the same Image::Magick reference to each subroutine

Re: $r->register_cleanup limits?

2000-06-09 Thread Doug MacEachern
On Tue, 6 Jun 2000, Jim Woodgate wrote: > > In a module I'm using register_cleanup so the client doesn't need to > wait for me to do a bunch of work. It basically does this: > > foreach (@images) { > unless (-f $thumb{$_}) { > &create_thumb(

RE: $r->register_cleanup limits?

2000-06-06 Thread Geoffrey Young
> -Original Message- > From: Jim Woodgate [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 06, 2000 9:48 AM > To: [EMAIL PROTECTED] > Subject: $r->register_cleanup limits? > > > > In a module I'm using register_cleanup so the client doesn't nee

$r->register_cleanup limits?

2000-06-06 Thread Jim Woodgate
In a module I'm using register_cleanup so the client doesn't need to wait for me to do a bunch of work. It basically does this: foreach (@images) { unless (-f $thumb{$_}) { &create_thumb($_); $r->register_cleanup(sub {&create_more_sizes($_, ...)}); } } c

cant find register_cleanup

2000-06-03 Thread Pete Lancashire
I'm trying to install mod_auth_mysql 2.20. But when I start apache (httpd) i get the error: Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: /etc/httpd/modules/mod_auth_mysql.so: undefined symbol: register_cleanup Setup is: mod_perl 1.24. Built with EVERYTHING=1, apxs metho