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.

> 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.

-- 
Joe Schaefer


-- 
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