On Mon, 25 Aug 2003, K Old wrote:
> On Mon, 2003-08-25 at 00:18, Randy Kobes wrote:
> > On Sun, 24 Aug 2003, K Old wrote:
[ ... ]
> > > I did a "install HTML::Mason" from the CPAN command
> > > line and all the dependencies were downloaded and some
> > > didn't compile. The two that didn't are
>
>>On Sun, 24 Aug 2003, K Old wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hello everyone,
> >>>>>
> >>>>>I've put HTML::Mason on a few servers now and have had problems with
> >>>>>Apache::
On Mon, 2003-08-25 at 00:18, Randy Kobes wrote:
> On Sun, 24 Aug 2003, K Old wrote:
>
> > Hello everyone,
> >
> > I've put HTML::Mason on a few servers now and have had problems with
> > Apache::Request and Apache::Test on two of them. My most recent is
> &g
Ok, in the libapreq module I did the "configure"
./configure --with-apache-includes=/usr/includes/apache
make
make install
Everything compiled just fine.
Then did
perl Makefile.PL && make && make test && make install
All of the tests still failed and the t/logs/error_log still reported:
[Sun
On Sun, 24 Aug 2003, K Old wrote:
> Hello everyone,
>
> I've put HTML::Mason on a few servers now and have had problems with
> Apache::Request and Apache::Test on two of them. My most recent is
> having the problem and I'm about to go crazy if I don't figure
I ran into the same problem. What I had to do was compile libapreq as a
shared library first. That solved things nicely.
HTH.
Regards,
S. G.
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Hello everyone,
I've put HTML::Mason on a few servers now and have had problems with
Apache::Request and Apache::Test on two of them. My most recent is
having the problem and I'm about to go crazy if I don't figure out why
installs keep having problems.
Here's my setup: R
-----
> if (eval {require Apache::Request}) {
> $newQ ||= sub { Apache::Request->new(@_) };
> }
> elsif (eval {require CGI}) {
> $newQ ||= sub { CGI->new; };
> }
> el
Hi All,
perl-5.8.0 + mp1.99_10.
---
I am having problem trying to get /perl-status work.
It bombs out in Status.pm at the following location:
--
if (eval {require Apache::Request}) {
$newQ ||= sub
www.sprocketdata.com
: -Original Message-
: From: Stas Bekman [mailto:[EMAIL PROTECTED]
: Sent: Thursday, July 31, 2003 6:48 AM
: To: K Old
: Cc: ModPerl List
: Subject: Re: Trouble with Apache::Request
:
:
: >>On 6 Jun 2003, K Old wrote:
:
: [...]
:
: > Well, here are the errors I'm ge
darn thing for about 3 hours.
. Glenn E. Bailey III
. Sprocket Data, Inc.
. http://www.sprocketdata.com
: -Original Message-
: From: Stas Bekman [mailto:[EMAIL PROTECTED]
: Sent: Thursday, July 31, 2003 6:48 AM
: To: K Old
: Cc: ModPerl List
: Subject: Re: Trouble with Apache::Request
On 6 Jun 2003, K Old wrote:
[...]
Well, here are the errors I'm getting:
When I *force* and install of Apache::Request and a script calls
Apache::Request, this is in the error_log:
[Fri Jun 6 17:27:31 2003] [error] Can't locate object method "new" via
package "Apache::R
Tom Gazzini wrote:
I have a perl function which, amongst other things, needs to redirect
the request to another page.
It also needs to pass all the query parameters of the original request
(both GET and POST) to the redirected page, and also add one parameter
of it's own (an error message).
Sounds
On Wed, 2003-07-02 at 20:38, Andrew Ho wrote:
> I totally agree with the fact that Apache::Registry can introduce many
> hard-to-debug-problems. I've had enough headaches debugging some of these
> issues myself. It's unclear to me, though, that there are unimaginably
> cool things you can get to in
It's unclear to me, though, that there are unimaginably
cool things you can get to in a "real" content handler that you can't get
to from an Apache::Registry script--which seems to be the assertion.
well, if you consider that you still get access to $r and all its treasures
from Apache::Registry,
the question isn't "why is Apache::Registry not sufficient to
handle all functions within an HTTP request" but "why is it bad to use
Apache::Request specifically for the content generation phase?" Perrin had
some good practical reasons for this--caused by the generated-name
Jesse Erlbaum wrote:
Philippe --
Check out the guide:
Check out the books:
Check out the success stories:
Is that your answer? I was hoping for specific examples, not
hand-waving.
I like to think that Part III (Chapters 11-17) of the mod_perl Developer's
Cookbook does some of that.
authent
Philippe --
> Check out the guide:
> Check out the books:
> Check out the success stories:
Is that your answer? I was hoping for specific examples, not
hand-waving.
-Jesse-
--
Jesse Erlbaum
The Erlbaum Group
[EMAIL PROTECTED]
Phone: 212-684-6161
Fax: 212-684-6226
On Wed, 2003-07-02 at 22:36, Jesse Erlbaum wrote:
> Hi Joe --
>
> > +1. Scripting _inside_ the server opens up possibilities that
> > are unimaginable to folks who are content confining themselves
> > to the lowest common denominator (CGI).
>
> Perhaps you could bullet-point a few of these poss
Hi Joe --
> +1. Scripting _inside_ the server opens up possibilities that
> are unimaginable to folks who are content confining themselves
> to the lowest common denominator (CGI).
Perhaps you could bullet-point a few of these possibilities for those of
us who are confined by our lack of imagin
ities that
are unimaginable to folks who are content confining themselves
to the lowest common denominator (CGI).
That said, apreq-dev is looking for someone to adopt and
develop the CGI port of libapreq-2/Apache::Request. I'm shooting
for a developer release of libapreq-2 before OSCO
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: Questio
I have a perl function which, amongst other things, needs to redirect
the request to another page.
It also needs to pass all the query parameters of the original request
(both GET and POST) to the redirected page, and also add one parameter
of it's own (an error message).
Sounds simple enough, bu
"Hector Pizarro" <[EMAIL PROTECTED]> writes:
[...]
> If the user closes the popup in the middle of an upload, Apache::Request
> parse() isn't throwing any error, and all the following code in my module
> savesthe file incomplete in the system, which of course is ga
f the user closes the popup in the middle of an upload, Apache::Request
parse() isn't throwing any error, and all the following code in my module
savesthe file incomplete in the system, which of course is garbage data.
Is this a bug, an incomplete feature, or is my configuration? If parse is
s
BTW, Apache::Request's 2.0 port is moving forward very fast thanks to Joe
Schaefer's efforts. He is looking for help, at least with testing the perl
glue. If you are interested to help, join the apreq-dev list:
http://httpd.apache.org/apreq/
On Sun, 8 Jun 2003, K Old wrote:
> On Sun, 2003-06-08 at 01:50, Randy Kobes wrote:
> > On Fri, 7 Jun 2003, K Old wrote:
> > [ .. ]
> > > Stas, thanks for your reply. I downloaded the CVS source and
> > > it still failed all tests. Below is the output from make test
> > > and the output from perl
On Sun, 2003-06-08 at 01:50, Randy Kobes wrote:
> On Fri, 7 Jun 2003, K Old wrote:
> [ .. ]
> > Stas, thanks for your reply. I downloaded the CVS source and
> > it still failed all tests. Below is the output from make test
> > and the output from perl -V. Any help is appreciated!
>
> Another th
On Fri, 7 Jun 2003, K Old wrote:
[ .. ]
> Stas, thanks for your reply. I downloaded the CVS source and
> it still failed all tests. Below is the output from make test
> and the output from perl -V. Any help is appreciated!
Another thing that may be worth trying - if you've installed
libapreq, t
ng that having Perl compiled with threads might be what's
> causing the problem
So are you telling me you built Apache and mod_perl but you didn't
build the Perl? That could be a problem. The standard advice is
that the same compiler must be used to build Perl and mod_perl.
> Just thi
httpd &&
make test
...
All tests successful.
This version will be soon released on CPAN, it wasn't released yet due to some
polishing of Apache::Test that is now used by Apache::Request for its test suite.
Here is how to get the cvs version:
% cvs -d :pserver:[EMAIL PROTECTED]:/ho
x27;ll build a version without threads just to see if it works
>
> Want to run that by me again??
>
Mandrake 9.0 (and several other linux distros) come out of the box with
Perl 5.8.0 built with threads. I'm guessing that having Perl compiled
with threads might be what's caus
On Fri, 6 Jun 2003, K Old wrote:
> Hello everyone,
>
> I'm having trouble getting Apache::Request installed on my
> Mandrake 9.0 system. Let me first say that I'm not using the
> Apache that came with Mandrake 9.0. I downloaded Apache
> 1.3.27, mod_perl 1.27 and PH
> > I'm having trouble getting Apache::Request installed on my Mandrake 9.0
[snip]
> > make test. I can force the install, but the same error comes up when I
> > try to load Apache::Request as a PerlModule in httpd.conf or when Alzabo
> > calls it.
Is it *exactly*
ch, David wrote:
> Did you do a threaded build of Perl 5.8.0?
> You might try a non-threaded Perl build.
>
> Regards,
> Kitch
> [EMAIL PROTECTED]
>
> -Original Message-
> From: K Old [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 06, 2003 11:27 AM
> To: ModP
Did you do a threaded build of Perl 5.8.0?
You might try a non-threaded Perl build.
Regards,
Kitch
[EMAIL PROTECTED]
-Original Message-
From: K Old [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 11:27 AM
To: ModPerl List
Subject: Trouble with Apache::Request
Hello everyone
Hello everyone,
I'm having trouble getting Apache::Request installed on my Mandrake 9.0
system. Let me first say that I'm not using the Apache that came with
Mandrake 9.0. I downloaded Apache 1.3.27, mod_perl 1.27 and PHP 4.3.1
sources and compiled and installed them. Everything
All,I'm
looking for some help with understanding how the Apache::Request objectsare
created and destroyed.I have the following params set in my
httpd.confKeepAlive OffPerlChildInitHandler
Bficient::Apache::DBloadWhich as I understand it should mean that an
apache::Request object iscr
Ewald Geschwinde wrote:
I have read that the param Method had been deprecated
$r->param('value'):
How do I get now the variables from a submitted form ??
now? when? nothing has changed with Apache::Request. No April Foo
I have read that the param Method had been deprecated
$r->param('value'):
How do I get now the variables from a submitted form ??
regards Ewald
mpatibility between Apache::Request and CGI, so that you could switch
from one to another easily. I think this would be a big win for mod_perl
overall from the "port your scripts quickly" point of view.
I think a good compromise would be to keep the HTML generation code in an
entirely separat
> Sounds interesting. What would be the advantage of that?
>
> The advantage is that
> - you don't have to keep around two instances: $r and $q.
> - assuming that CGI.pm-specific code is not used one can transparently switch
> between Apache::Request and CGI.pm, by just cha
tead of returning $q it'll return $r,
> >>after re-blessing it.
> >
> > Sounds interesting. What would be the advantage of that?
>
> The advantage is that
> - you don't have to keep around two instances: $r and $q.
> - assuming that CGI.pm-specific code i
On 3/24/03 7:08 PM, Stas Bekman wrote:
> In the future I can see someone extending Apache::Request to handle CGI.pm's
> HTML generation in C, so the two could be replace each other.
I've always thought that HTML generation does not belong in CGI.pm, so I
don't see duplicati
eep around two instances: $r and $q.
- assuming that CGI.pm-specific code is not used one can transparently switch
between Apache::Request and CGI.pm, by just changing:
$r = Apache::Request->new($r);
$r = CGI->new($r);
And of course Apache::Request is a subclass of Apache ($r) and it works p
ere no low-overhead way of getting at this?
>
> Not, under threaded mpm. Since the code should work the same with threaded
> and non-threaded mpm, it's a problem for any 2.0 code. The problem with
> Apache->request is that it involves storing and retrieving data from the
> TL
no low-overhead way of getting at this?
Not, under threaded mpm. Since the code should work the same with threaded and
non-threaded mpm, it's a problem for any 2.0 code. The problem with
Apache->request is that it involves storing and retrieving data from the TLS
(thread local storag
more transparent way to obtain the current request. Is there
no low-overhead way of getting at this?
Lincoln
On Thursday 13 March 2003 07:00 pm, Stas Bekman wrote:
> One more issue with CGI.pm and mp2, and other modules as well.
>
> CGI.pm is using Apache->request. The setting/retrie
Andrew Alakozow wrote:
Hello,
I use Apache::FakeRequest to test perl handlers without firing up Apache.
Testting is supposed to be done by matching output of handlers with some
regexps. But the print method of Apache::Request prints to STDOUT, so to
get output I applied following patch to it
Hello,
I use Apache::FakeRequest to test perl handlers without firing up Apache.
Testting is supposed to be done by matching output of handlers with some
regexps. But the print method of Apache::Request prints to STDOUT, so to
get output I applied following patch to it:
10c10,17
< sub pr
One more issue with CGI.pm and mp2, and other modules as well.
CGI.pm is using Apache->request. The setting/retrieval of the global request
record under threads is expensive, so the use of Apache->request is deprecated
in mp2.
If CGI.pm can be changed to optionally accept $r (as an argum
nd 1.1 on CPAN and this seems to fix my problems. I'm not
sure why I didn't find
the newer version first off (I only made this change in the last few
days and downloaded
Apache::Request).
Thanks for everyone's help !
Rob Lambden
> I downloaded Apache::Request from CPAN and I have version 0.31. My C
> compiler is gcc 2.96
aiya. libapreq 0.31 is the one that likes to append whatever it is that
one just uploaded to it to its heap until it starves your machine of memory,
if i recall correctly. it was fixed in 0.3
(Originally posted as Apache::Registry incompatible with CGI? by mistake
- sorry !)
Hi,
I have written a request handler in Perl. I recently changed some code
in this to convert
from using CGI within mod_perl to using Apache::Request. The old code
was ...
$DB->{ApacheReq} = shift;
:
On Fri, 31 Jan 2003, Lee Goddard wrote:
> Does anyone know when this module might be released?
No, no one does. They are working on it. Use CGI.pm instead or revert to
mod_perl/apache version 1 until it is done.
- nick
Nick Tonkin {|8^)>
-BEGIN PGP SIGNED MESSAGE-
Hash: MD5
Does anyone know when this module might be released?
tia
lee
Lee Goddard mailto:[EMAIL PROTECTED]
"What do people like to drink here, then?"
The landlord looked sideways at his
Steve wrote:
In the documentation of nodperl-2.0, I cannot find any references to
libapreq and $r->param.
Because it's not there yet.
correct me if I'm wrong anyone,but I don't think Apache::Request has been
ported to
modperl2 yet..
True. The C porting of libapreq is al
> In the documentation of nodperl-2.0, I cannot find any references to
> libapreq and $r->param.
correct me if I'm wrong anyone,but I don't think Apache::Request has been
ported to
modperl2 yet..
for now I'm using cgi
Hi.
I use apache-1.3.26, modperl-1.27 and Embperl-1.3 with libapreq-1.0
and I have a routine in perl that processes the data passed from
a form (from the Modperl Cookbook):
use Apache::Request;
my $r = Apache::Request->instance(Apache->request);
foreach $param ($r-
Marc Lambrichs wrote:
Hi All,
I want to save my Apache::Request object in an PerlInitHandler called
Initialization and later on during the life cycle of the request call a
Initialization->get_request() method to use it again.
perldoc Apache::Request:
instance
Hi All,
I want to save my Apache::Request object in an PerlInitHandler called
Initialization and later on during the life cycle of the request call a
Initialization->get_request() method to use it again.
How can I do this in a safe manner? If you're wondering, why I would wan
Jesse Erlbaum wrote:
Hi Coexec --
I am experienced with using the CGI.pm, and now I want
to rewrite all of my CGI's using mod_perl and
Apache::Request.
Maybe a silly question: What are you hoping to gain by doing this?
Speed. Apache::Request's guts are implemented in C, CGI.
Hi Coexec --
> I am experienced with using the CGI.pm, and now I want
> to rewrite all of my CGI's using mod_perl and
> Apache::Request.
Maybe a silly question: What are you hoping to gain by doing this?
If you're already using Apache::Registry, then your CGI.pm apps are
On Tue, 19 Nov 2002, Coexec wrote:
> Date: Tue, 19 Nov 2002 15:40:37 -0800 (PST)
> From: Coexec <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Migrating from CGI.pm to Apache::Request question.
>
> Hello all, I have been searching through the mailing
> list ar
Hello all, I have been searching through the mailing
list archives for the answer to my question, but I
have not found it.
I am experienced with using the CGI.pm, and now I want
to rewrite all of my CGI's using mod_perl and
Apache::Request. According to everything that I have
been reading
Hello,
We use this patch (on Apache::Filter 1.019) and it works ok. It won't
get you up and running with Apache::Registry, but it will do if you can
initialize the filter yourself.
Add this to Filter.pm:
sub Apache::Request::filter_register {
my $r= shift;
@ISA = qw(Apache::Re
List,
Can anyone tell me if a module exists that combines these two modules so
that, for example, when using Apache::Dispatch one can create an instance of
Apache::Request in the handler without clobbering the overridden methods
sent as part of the Apache::Filter object. Before I try and do
fault installation paths for required
packages.
-DeAngelo
-Original Message-
From: Perrin Harkins [mailto:perrin@;elem.com]
Sent: Friday, November 08, 2002 1:10 PM
To: DeAngelo Lampkin
Cc: mod_perl Mailing List
Subject: Re: Can't locate object method "new" via package
"Ap
DeAngelo Lampkin wrote:
And of course the other reason is that if the solution to the problem
was so obvious from the error message, somebody would have posted a
solution before I figured it out (with help from you guys).
There is documentation related to this problem in the troubleshooting
Cool. Will do.
-Original Message-
From: Tim Tompkins [mailto:timt@;arttoday.com]
Sent: Thursday, November 07, 2002 12:27 PM
To: DeAngelo Lampkin; [EMAIL PROTECTED]
Subject: Re: Can't locate object method "new" via package
"Apache::Request" (via Mason)...SOLVED
ly a new problem with mod_perl. Just ask this guy =>
http://lists.fsck.com/pipermail/rt-users/2002-September.txt. It's the exact same
problem with the exact same error message, only in different clothing (he's having
trouble with the Apache::Cookie object rather than the Apache::Request
x27;/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/Request/Request.so'\
> for module Apache::Request: libapreq.so.1: cannot open shared object file:\
> No such file or directory [snip]
>
> This isn't the most helpful error message in the world.
Huh?
It tells you EXACTLY what is wrong.
73,
Ged.
> As a quick follow-up, the "PerlModule Apache::Request" line is NOT
> needed in the httpd.conf file for Mason to work. However, it was a very
> valuable debugging tool.
That wasn't really the purpose, though. The purpose was to pre-load the
module in the parent apach
As a quick follow-up, the "PerlModule Apache::Request" line is NOT needed in the
httpd.conf file for Mason to work. However, it was a very valuable debugging tool.
-Original Message-
From: DeAngelo Lampkin
Sent: Thursday, November 07, 2002 11:21 AM
To: Tim Tompkins; [EMAIL
Thanks to Tim, Gareth, and Phillippe:
OK, I'll start with the solution to the problem and then drag on a bit for how I found
it.
The problem was the location of a shared object file for the Apache Request object. A
file called libapreq.so.1 was located in /usr/local/lib (should have be
/
--
- Original Message -
From: "Gareth Kirwan" <[EMAIL PROTECTED]>
To: "Tim Tompkins" <[EMAIL PROTECTED]>; "DeAngelo Lampkin"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 11:20 AM
Subject: RE: Can't lo
]
Sent: 07 November 2002 18:16
To: DeAngelo Lampkin; [EMAIL PROTECTED]
Subject: Re: Can't locate object method "new" via package
"Apache::Request" (via Mason)...
You should pre-load Apache::Request anyway,
PerlModule Apache::Request
PerlModule HTML::Mason::ApacheHa
You should pre-load Apache::Request anyway,
PerlModule Apache::Request
PerlModule HTML::Mason::ApacheHandler
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
Regards,
Tim Tompkins
--
Programmer
http
Tim - You're quite right - I should have noticed the reference to 5.8.0 in
the @INC file.
I didn't /think/ 5.8.0 was stable ?! Am I being stupid ?
Either way:
perl -e 'use Apache::Request || die $!;'
from the command line should tell you if you have Apache::Request installed
Is Apache::Request installed for perl 5.8.0? Sounds like it's not loaded,
anyway.
Regards,
Tim Tompkins
--
Programmer
http://www.clipart.com/
http://www.rebelartist.com/
--
- Original Message -
he former ) for things like httpd.conf if you
want to keep it tidy.
Regards
Gareth
-Original Message-
From: DeAngelo Lampkin [mailto:dlampkin@;xencor.com]
Sent: 07 November 2002 17:54
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Can't locate object method "new" via packa
TML::Mason::ApacheHandler
The reason this wasn't posted on a Mason mailing list is that this didn't seem like a
Mason problem per se and the Mason mailing list page specifically mentioned the Apache
Request object (at least in part the source of my problem)as being something that is
dler.
Check out the information on http://www.masonhq.com
Hope this helps.
Gareth
-Original Message-
From: DeAngelo Lampkin [mailto:dlampkin@;xencor.com]
Sent: 06 November 2002 23:25
To: [EMAIL PROTECTED]
Subject: Can't locate object method "new" via package "Apache::Requ
Seems somewhat similar to a bug I've reported 10 months ago.
You might want to try to run the minimal testcase enclosed in the
forwarded mail.
Phil.
--- Begin Message ---
I've found that mod_perl can get confused when dealing with method
calls during a redirect_internal phase:
1. page /1 uses
ge that should be handled by Mason (a perl templating system), I get the
following error message:
"[Wed Nov 6 11:56:20 2002] [error] Can't locate object method "new" via package
"Apache::Request" at /usr/lib
Hi all,
I am a newbie to mod_perl and going straight to mod_perl 2.
Have successfully written basic handler (API).
Have not installed mod_perl 1.x
Not using Apache::compat. ( Donot intend to use CGI.pm either )
In this case how to use methods from Apache::Request like $q->param() etc?
I can
>might be
>sending an empty file with the default enctype instead.
>
>> There were several related reports in the mailing list
>>during the
>> months: Apache::Request might not handle double-bytes or
>>utf8
>> correctly. Or it may be due to the C library.
>
There were several related reports in the mailing list during the
> months: Apache::Request might not handle double-bytes or utf8
> correctly. Or it may be due to the C library.
You seem to know something about this issue. However, this is the first
time I've seen utf8 discussed in relation
Please take a serious look. There were several related reports in the
mailing list during the months: Apache::Request might not handle
double-bytes or utf8 correctly. Or it may be due to the C library.
Peter
- Original Message -
From: "Joe Schaefer" <[EMAIL PROTECTED]
<[EMAIL PROTECTED]> writes:
[...]
> With Kanji filename :
> Size is 0
> UPL:Content-Disposition=form-data; name="UPLOADFILE";
> filename=".DOC"
> UPL:Content-Type=application/octet-stream
>
> Without Kanji filename
> Size is 306688
> UPL:Content-Disposition=form-data; name="UPLOADFILE"
Hi All-
We are using Apache::Request to handle our uploads
via the browser. Now that we switched to UTF-8 encoding
any filename with Kanji in the filename uploads with a
size of '0' and nothing goes to disk. Take the same file,
put its name to roman chars and it uploads fine.
On Mon, 26 Aug 2002, Ufuk Yuzereroglu wrote:
> I dont know if this is the right place to ask but I just cant
> install Apache::Request. When calling 'make', make cant find
> any of the header files. Can anyone tell me where I did go
> wrong?
Did you install mod_perl and
Hi,
I dont know if this is the right place to ask but I
just cant install Apache::Request. When calling 'make', make cant find any of
the header files. Can anyone tell me where I did go wrong?
Thanks
UY
I'd like to access the original Apache startup environment variables from within sections.
Through experimentation and reading page 498 of the Eagle that I need to use Apache->Request->subprocess_env to access the original environment in order to do this, as %ENV is cleared at
[resent to modperl list; earlier copy mistakenly cc'd to "p5p"]
Does anyone know what's causing the Apache::Request object to
leak here? See # XXX comment below:
package Apache::test;
sub Apache::Request::DESTROY{warn "DEAD: $_[0]\n"}
sub Apach
Does anyone know what's causing the Apache::Request object to
leak here? See # XXX comment below:
package Apache::test;
sub Apache::Request::DESTROY{warn "DEAD: $_[0]\n"}
sub Apache::DESTROY{warn "Dead: $_[0]\n"}
use Devel::Peek;
use A
Joe Schaefer wrote:
>>Somehow the assignment operator MUST be involved in the leak here.
>>(You only get a leak when the *same* reference (*SV) is on both sides
>>of the assignment).
>
>
> Could someone with modperl 1.2x built using a perl 5.8 release candidate
> please test this out:
I got t
ndidate
please test this out:
sub Apache::Request::DESTROY{warn "DEAD: $_[0]\n"}
sub Apache::DESTROY{warn "Dead: $_[0]\n"}
use Devel::Peek;
use Apache:Request;
package Apache::test;
sub handler {
my $r = shift;
my $apr = Apache::R
count for what $x is pointing to at
> that point. So, it all depends on what make_something_from() does with
> the $x's referent.
I don't think it's as simple as that-
THIS LEAKS:
my $r = shift;
$r = Apache::Request->new($r);
my $r = shift;
$r = Apache::Request-
* Joe Schaefer <[EMAIL PROTECTED]> [2002-07-09 12:47]:
> Dave Rolsky <[EMAIL PROTECTED]> writes:
> > On 8 Jul 2002, Joe Schaefer wrote:
> > If I do this:
> >
> > my $x = shift;
> > $x = make_something_from($x);
> >
> > then it seems like the original $x should go out of scope when it is
> > as
1 - 100 of 385 matches
Mail list logo