On Thu, 20 Sep 2001, Stas Bekman wrote:

> Apache::TestConfigPerl has this snippet:
>              $self->postamble($self->$container($module),
>                               { @args }) if @args;
> 
> now the array becomes hash so if there were two identical keys they get 
> smashed.
> 
> Now consider this __DATA__ section in test:
> 
> PerlSetVar Foo 1
> PerlSetVar Bar 2

you could just do this instead:

PerlSetVar Foo 1 Bar 2
 
> Somebody will have to explain to me why this works (I can call 
> $r->dir_config):
> 
>   mpxs_Apache__RequestRec_set_basic_credentials
>   mpxs_Apache__RequestRec_no_cache | | r, flag=Nullsv
> PACKAGE=Apache::RequestRec
>   mpxs_Apache__RequestRec_dir_config
> 
> but this doesn't!
> 
>   mpxs_Apache__RequestRec_set_basic_credentials
>   mpxs_Apache__RequestRec_no_cache | | r, flag=Nullsv
>   mpxs_Apache__RequestRec_dir_config
> PACKAGE=Apache::RequestRec

what is the C prototype of mpxs_Apache__RequestRec_dir_config ?
if request_rec *r is the first arg, it should just work.
provided you've run source_scan of course.
 
> In the later case the server dies without spitting any error message and 
> not even segfault :( . That's why I was trying to use gdb, but could 
> figure out how to set the breakpoint (the code with the sub is not 
> loaded and that time).

what does the generated xs for dir_config look like?



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

Reply via email to