diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2009-04-11 12:51:22 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2009-04-11 12:51:22 +0000 |
commit | 3b03d918066c823f39536b8d108d1145c833a3dd (patch) | |
tree | c64bf01cb97c61d3d95161580fc9c721906030d4 /lang/perl5.16/files | |
parent | f7863280fa6c9a707f6f08c7c4f24cc97561e0c3 (diff) | |
download | ports-3b03d918066c823f39536b8d108d1145c833a3dd.tar.gz ports-3b03d918066c823f39536b8d108d1145c833a3dd.zip |
Notes
Diffstat (limited to 'lang/perl5.16/files')
-rw-r--r-- | lang/perl5.16/files/patch-bug49472 | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/lang/perl5.16/files/patch-bug49472 b/lang/perl5.16/files/patch-bug49472 new file mode 100644 index 000000000000..afc02952ba56 --- /dev/null +++ b/lang/perl5.16/files/patch-bug49472 @@ -0,0 +1,48 @@ +# http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 +# http://perl5.git.perl.org/perl.git/commitdiff/ca4cfd28534303b82a216cfe83a1c80cbc3b9dc5?hp=41d86c6b932c287037db3584f7658c067cae5e84 +diff --git a/t/comp/require.t b/t/comp/require.t +index af5e4b2..0746b3b 100755 +--- t/comp/require.t ++++ t/comp/require.t +@@ -15,7 +15,7 @@ krunch.pm krunch.pmc whap.pm whap.pmc); + + my $Is_EBCDIC = (ord('A') == 193) ? 1 : 0; + my $Is_UTF8 = (${^OPEN} || "") =~ /:utf8/; +-my $total_tests = 49; ++my $total_tests = 50; + if ($Is_EBCDIC || $Is_UTF8) { $total_tests -= 3; } + print "1..$total_tests\n"; + +@@ -258,6 +258,20 @@ EOT + } + } + ++# [perl #49472] Attributes + Unkown Error ++ ++{ ++ do_require ++ 'use strict;sub MODIFY_CODE_ATTRIBUTE{} sub f:Blah {$nosuchvar}'; ++ my $err = $@; ++ $err .= "\n" unless $err =~ /\n$/; ++ unless ($err =~ /Global symbol "\$nosuchvar" requires /) { ++ $err =~ s/^/# /mg; ++ print "${err}not "; ++ } ++ print "ok ", ++$i, " [perl #49472]\n"; ++} ++ + ########################################## + # What follows are UTF-8 specific tests. # + # Add generic tests before this point. # +diff --git a/toke.c b/toke.c +index 2ae8b75..ecee902 100644 +--- toke.c ++++ toke.c +@@ -692,6 +692,7 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, bool new_filter) + #else + parser->nexttoke = 0; + #endif ++ parser->error_count = oparser ? oparser->error_count : 0; + parser->copline = NOLINE; + parser->lex_state = LEX_NORMAL; + parser->expect = XSTATE; |