Doug MacEachern wrote:
> On Wed, 10 Apr 2002, Stas Bekman wrote:
>  
> 
>>none of these look like an intuitive replacement for a pool object as a 
>>first argument :(
> 
> 
> that's done on purpose.  if you're not going to pass in an APR::Pool 
> object, you should know what you're doing.  that is, pretend we supported 
> Apache::server_root_relative("logs");
> much too easy for that to slip into code that is run at request time, 
> making that code leak and unthread safe.

of course. That's why I wanted to have an explicit pool object to pass. 
Before your last minute's commit there was no way to get it, other than 
creating APR::Pool->new.

BTW, Apache::Server->process segfaults (after rebuild), bt at the end.

>>Among other things, I've started porting apreq. If we get it into the 
>>httpd-2.0 core before it gets released, can we use this lib's 
>>functionality for parsing args as part of the modperl core? Do we have 
>>any other alternatives other than the slow CGI.pm?
> 
> 
> if the functions are in httpd-2.0 we will provide the direct mapping as 
> Apache::Request does now.

good

> $r->args parsing-in-an-array-context would still be deprecated.

I thought the deprecation was about not doing it on the modperl side. If 
we just provide a glue code, what's wrong with 
parsing-in-an-array-context? By this context you mean:

   @args = $r->args; ?
---
bt:

#0  0x403e529a in Perl_mg_get (my_perl=0x81a7218, sv=0x828f260) at mg.c:119
#1  0x40405aa4 in Perl_sv_2iv (my_perl=0x81a7218, sv=0x828f260) at sv.c:2011
#2  0x405272ba in XS_Apache__Server_process (my_perl=0x81a7218, 
cv=0x823f6b4)
     at Server.c:53
#3  0x40401300 in Perl_pp_entersub (my_perl=0x81a7218) at pp_hot.c:2730
#4  0x403dd489 in Perl_runops_debug (my_perl=0x81a7218) at dump.c:1393
#5  0x40381470 in S_call_body (my_perl=0x81a7218, myop=0xbffff1e0, 
is_eval=1)
     at perl.c:2005
#6  0x4038171a in Perl_eval_sv (my_perl=0x81a7218, sv=0x81a7dcc, flags=2)
     at perl.c:2065
#7  0x40381d00 in Perl_require_pv (my_perl=0x81a7218,
     pv=0x8161470 
"/home/stas/apache.org/mp-sb/ModPerl-Registry/t/conf/modperl_extra_startup.pl") 
at perl.c:2163



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


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

Reply via email to