summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-10 12:44:30 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-10 12:44:30 +0000
commit404a4710121cff4198e389aea65a2912aad3c5d2 (patch)
treea67d8892f0e1415ee021755fed73948ec1101c47 /scope.c
parent89780818b8545f3b36cf310b8bd887e641799cc2 (diff)
downloadperl-404a4710121cff4198e389aea65a2912aad3c5d2.tar.gz
Work around bug 36211, plus a lot of TODO regression tests for local/
$#... interaction. p4raw-id: //depot/perl@24791
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 11c81bde94..31a3ebc44b 100644
--- a/scope.c
+++ b/scope.c
@@ -755,6 +755,9 @@ Perl_leave_scope(pTHX_ I32 base)
gv = (GV*)SSPOPPTR;
if (GvAV(gv)) {
AV * const goner = GvAV(gv);
+ /* FIXME - this is a temporary hack until we work out what
+ the correct behaviour for magic should be. */
+ sv_unmagic((SV*)goner, PERL_MAGIC_arylen_p);
SvMAGIC_set(av, SvMAGIC(goner));
SvFLAGS((SV*)av) |= SvMAGICAL(goner);
SvMAGICAL_off(goner);