Until now, code executing within <Perl > sections was not 'tweaked' to match the filename/lineno of the httpd configuration file it was in.
So, for example, error reporting would appear to be coming from obscure eval contexts.
Following patch restores the same behaviour than in mp1.
+1, with a single style fix below
Index: Changes
===================================================================
RCS file: /home/cvs/modperl-2.0/Changes,v
retrieving revision 1.249
diff -u -I$Id: -r1.249 Changes
--- Changes 10 Nov 2003 21:11:53 -0000 1.249
+++ Changes 11 Nov 2003 20:24:24 -0000
@@ -14,6 +14,9 @@
=item 1.99_11 - November 10, 2003
+<Perl> sections now proprely set filename and line number information,
+making error messages report the correct location. [Philippe M. Chiasson]
You probably didn't cvs update your Changes ;)
[...]Index: src/modules/perl/modperl_cmd.c ===================================================================
+ line_header = apr_psprintf(p, "\n#line %d %s\n", parms->directive->line_num, parms->directive->filename);
This line needs to be wrapped.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
