On Tue, 16 Dec 2003, Joe Schaefer wrote:
> Dave Rolsky <[EMAIL PROTECTED]> writes:
>
> > If you call Apache::Request->instance with an undefined value, it dies
> > when it tries to call pnotes() on that argument.
> >
> > It seems to me that it should simply
Dave Rolsky <[EMAIL PROTECTED]> writes:
> If you call Apache::Request->instance with an undefined value, it dies
> when it tries to call pnotes() on that argument.
>
> It seems to me that it should simply return a false value if given
> undef. This can happen if you h
If you call Apache::Request->instance with an undefined value, it dies
when it tries to call pnotes() on that argument.
It seems to me that it should simply return a false value if given undef.
This can happen if you have a piece of code like this:
my $r = Apache::Request->instance(
ever') and $apr->param() would yield nothing
in the content generation phase.
Getting $r in handler() of both phases works fine, but not $apr so I
needed to use Apache::Request->instance($r) to make form content
available to both handlers during the same request. I assume this is
bec
Eric Sammer wrote:
[...]
For Apache2, Apache::Request->new will always reference the
appropriate per-request data; instance() isn't needed there,
so it won't be included in the 2.X releases.
That's pretty much what I was looking for. I just wanted to know that
there will be a common and reliabl
Joe Schaefer wrote:
There are no plans whatsoever to deprecate instance() from
the Apache::Request 1.X that comes in the libapreq-1.X package.
The APIs for 1.X are stable, and very unlikely to change at
all.
I wasn't so much thinking about the API changing within the 1.x branch
so much as being
Eric Sammer <[EMAIL PROTECTED]> writes:
> I'd rather not paint myself into the proverbial corner if
> Apache::Request->instance() is being deprecated.
There are no plans whatsoever to deprecate instance() from
the Apache::Request 1.X that comes in the libapreq-1.X packag
Eric Sammer wrote:
answering just the first part of the question:
If I recall, Apache->request() was being deprecated (or at least frowned
upon)... Is this true?
It's deprecated in mod_perl 2.0, not in mod_perl 1.0. Apache->request() has
very little to do with Apache::Request.
___
Sorry if this is OT.
If I recall, Apache->request() was being deprecated (or at least frowned
upon)... Is this true? Also, (and I know it's a separate package, but)
does anyone know if the same is true for Apache::Request->instance()?
With regard to A::R->instance(), I ask