Re: Apache::Request->instance(undef)

2003-12-16 Thread Dave Rolsky
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

Re: Apache::Request->instance(undef)

2003-12-16 Thread Joe Schaefer
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

Apache::Request->instance(undef)

2003-12-16 Thread Dave Rolsky
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(

Re: Apache::Request->instance()

2003-11-06 Thread Eric Sammer
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

Re: Apache::Request->instance()

2003-11-06 Thread Stas Bekman
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

Re: Apache::Request->instance()

2003-11-06 Thread Eric Sammer
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

Re: Apache::Request->instance()

2003-11-06 Thread Joe Schaefer
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

Re: Apache::Request->instance()

2003-11-05 Thread Stas Bekman
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. ___

Apache::Request->instance()

2003-11-05 Thread Eric Sammer
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