Re: Apache::PerlRun - Constant subroutine redefined

2004-10-25 Thread David Radunz
Hey, I just tested it and it works perfectly - I wont be able to roll out the next version that encorporates Devel::Unload for a week or two, but if I encounter any problems I will let you know. Cheers, David On Tue, 2004-10-26 at 04:22, Philippe M. Chiasson wrote: > Philippe M. Chiasson wrote:

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-25 Thread Philippe M. Chiasson
Philippe M. Chiasson wrote: David Radunz wrote: [...] I think that you have just uncovered a small bug in the unload_package() implementation and I'd like to know exactly how you've reproduced this. After looking over code, it is now clear to me that any namespace entry that has a name <= 2 chara

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-22 Thread Philippe M. Chiasson
David Radunz wrote: Philippe I know your buisy with mod_perl 2 stuff at the moment, but I hope you get a chance to look at this when your free - unless the author of the code is someone else and you just recommended it? Oh, no, I am the author of this code, and I am indeed busy with mod_perl 2

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-19 Thread David Radunz
Philippe I know your buisy with mod_perl 2 stuff at the moment, but I hope you get a chance to look at this when your free - unless the author of the code is someone else and you just recommended it? Anyway, Let me know. David On Mon, 2004-10-11 at 12:25, David Radunz wrote: > Further to that -

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-10 Thread David Radunz
Further to that - I just tested with an even bigger string and this one did get cleared fine, so it musnt be the size :( Not sure what the problem is, DJ On Mon, 2004-10-11 at 12:13, David Radunz wrote: > Hey, > > Thanks for your help. I tried using Devel::Unload to see how it works > and enc

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-10 Thread David Radunz
Hey, Thanks for your help. I tried using Devel::Unload to see how it works and encountered something unexpected. Basically I put the 'unload_package_xs' call just above the 'flush_namespace' call. Then I printed from within the namespace clearing loop (expecting nothing to be printed), yet somet

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-08 Thread Philippe M. Chiasson
Stas Bekman wrote: David Radunz wrote: Hi All, I have looked high and low to work out how to avoid the 'Constant subroutine redefined' warnings in the error log, followed by the 'Prototype missmatch:' error upon subsequent hits to the apache child process - but, I have not been able to find an ea

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-05 Thread Stas Bekman
David Radunz wrote: On Tue, 2004-10-05 at 12:39, Stas Bekman wrote: David Radunz wrote: Heya Stas, I like that alot, as you say heaps cleaner. For the time being thou can you see any problems with us using my patch internally? Looks fine to me. Thanks, we'll put it into production. Hmm. Well, I

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-04 Thread David Radunz
On Tue, 2004-10-05 at 12:39, Stas Bekman wrote: > David Radunz wrote: > > Heya Stas, > > > > I like that alot, as you say heaps cleaner. For the time being thou > > can you see any problems with us using my patch internally? > > Looks fine to me. > Thanks, we'll put it into production. > >

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-04 Thread Stas Bekman
David Radunz wrote: Heya Stas, I like that alot, as you say heaps cleaner. For the time being thou can you see any problems with us using my patch internally? Looks fine to me. I have run a few more tests and it seems everything still works pretty good. And of course keeping an eye out for Apach

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-04 Thread David Radunz
Heya Stas, I like that alot, as you say heaps cleaner. For the time being thou can you see any problems with us using my patch internally? I have run a few more tests and it seems everything still works pretty good. And of course keeping an eye out for Apache::RegistryCooker.. or will it be port

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-04 Thread Stas Bekman
David Radunz wrote: Hi All, I have looked high and low to work out how to avoid the 'Constant subroutine redefined' warnings in the error log, followed by the 'Prototype missmatch:' error upon subsequent hits to the apache child process - but, I have not been able to find an easy solution. The wa

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-04 Thread David Radunz
Your quite right about constants in perl - they are a big hack. I could have used the internals of constant.pm to determine for sure if something was a constant (see: TECHNICAL NOTES documentation of the constant man page). However, that doesnt work when using imported (Exporter) constants because

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-04 Thread Perrin Harkins
On Mon, 2004-10-04 at 08:15, David Radunz wrote: > My patch: This looks like a good idea to me. I'd say we should put it in. > For example: > > print STDERR 'time_constant = '. &time_constant(). "\n"; > sub time_constant () { >time. ' '. $$; > } > > running under 'httpd -X' > > would prod

Re: Apache::PerlRun - Constant subroutine redefined

2004-10-03 Thread David Radunz
Also forgot to mention, this is running: mod_perl 1.29 perl 5.8.4 apache 1.3.27 and .. SunOS *** 5.9 Generic_112234-08 i86pc i386 i86pc Cheers On Mon, 2004-10-04 at 16:15, David Radunz wrote: > Hi All, > > I have looked high and low to work out how to avoid the 'Constant > subroutine redef

Apache::PerlRun - Constant subroutine redefined

2004-10-03 Thread David Radunz
Hi All, I have looked high and low to work out how to avoid the 'Constant subroutine redefined' warnings in the error log, followed by the 'Prototype missmatch:' error upon subsequent hits to the apache child process - but, I have not been able to find an easy solution. The warnings are caused b