John Siracusa wrote:
Does anyone have Apache::Peek working with perl 5.8.0?  I can't get it to
build, and I can't find the symbols it's (apparently) missing anywhere in
perl 5.8.0's header files.  Example:
[...]

Doug MacEachern has hacked Devel::Peek 0.95 to work with mod_perl. The
current Apache::Peek version is 0.9501. It works with Perl versions <
5.8.0 and mod_perl 1.x.

The attached package is a similar hack that works with Perl 5.8.0 and
mod_perl 1.x. Doug's hack doesn't compile with perl 5.8.0, since
Devel::Peek, which it copies, has been heavily rewritten and uses
internally APIs which didn't exist before. I took a different approach
and instead of overriding PerlIO functions (the approach which doesn't
work anymore) I've simply supplied a very simple PerlIO layer that
only knows to write data to the client using the request_rec object.

I've done only very basic testing, so bugs are possible. Let me know
if you spot any.

I'm not sure what's the best approach to take in order to distribute
this package. Whether to somehow extend it to support Perl < 5.8.0 and
thus merge with Doug's version, or simply distribute it
separately. Ideas and patches are welcome.

TODO: The tests weren't adopted to use Apache::Test yet. Patches are
welcome.




__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@;stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Attachment: Apache-Peek-1.00_035008.tar.gz
Description: application/gzip

Reply via email to