diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-28 23:04:04 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-28 23:04:04 -0800 |
commit | 7355df7e69464cc1b7c5ce29234ddbcddec74500 (patch) | |
tree | 3d3e154ab4467a0cd3c372e46425ae1d9976e2d0 /perl.c | |
parent | e77511d262dd01fc8b8b509019091193efc59239 (diff) | |
download | perl-7355df7e69464cc1b7c5ce29234ddbcddec74500.tar.gz |
Croak when setting a tied @DB::args
In commit f8c105437 I stopped the setting of a tied @DB::args from
crashing, by untying the array. Untying an array automatically with-
out saying anything seems a little too much like action at a distance.
For now, let’s just croak, as we can always change it later once we
decide what should happen. At least that’s better than crashing.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3890,7 +3890,7 @@ Perl_init_dbargs(pTHX) "leak" until global destruction. */ av_clear(args); if (SvTIED_mg((const SV *)args, PERL_MAGIC_tied)) - sv_unmagic((SV *)args, PERL_MAGIC_tied); + Perl_croak(aTHX_ "Cannot set tied @DB::args"); } AvREIFY_only(PL_dbargs); } |