> Joe Schaefer wrote on 29 Jun 2004 15:00:54 -0400
>
> Nicholas Studt <[EMAIL PROTECTED]> writes:
> 
> [...]
> 
> > When I read this value from a POST or a GET everything works
> > happily. When I try to add something to the table the add happens
> > without event, but I can not read the set value back.
> 
> Actually a segfault is likely here, because Apache::Request::Table
> does not provide a (safe) overload for APR::Table::add().  You cannot
> currently assign params to any of the APR::Table-derived objects in
> apreq2, but this isue should be addressed before the next release.

Having tried Geoffrey's suggestion before this mail arrived I can
attest to the fact that this does indeed cause segmentation faults for
the get/set interface and generally bizarre behavior for the tie
interface.

> > Am I missing something in how APR::Table works or is there a better
> > construct I should be using?
> 
> I haven't tested this, but it should be safe to forcibly re-bless
> C<scalar $req->param> into an APR::Table object and do what you want
> (without breaking anything).  Do not try this with $req->args or
> $req->body though.

This does work to enable the get/set interface.



-- 
  nicholas studt - 29 June 2004

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to