change 31200 broke src filters used within an eval
Dave Mitchell [Tue, 15 May 2007 21:51:03 +0000 (21:51 +0000)]
eg BEGIN { eval q(use MyFilter) } would ignore the filter

p4raw-id: //depot/perl@31225

toke.c

diff --git a/toke.c b/toke.c
index 6819a8e..e00a464 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -686,7 +686,7 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, bool new_filter)
     parser->lex_state = LEX_NORMAL;
     parser->expect = XSTATE;
     parser->rsfp = rsfp;
-    parser->rsfp_filters = (new_filter || !oparser) ? NULL
+    parser->rsfp_filters = (new_filter || !oparser) ? newAV()
                : (AV*)SvREFCNT_inc(oparser->rsfp_filters);
 
     Newx(parser->lex_brackstack, 120, char);