diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-09-08 14:51:07 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-09-08 18:03:47 -0700 |
commit | 8d4393cf0f53c9e46fd1338d29417f254bd6d1cd (patch) | |
tree | 5fe7a45e7a313ecc3c4d932384cb4987001ad8f0 /sv.c | |
parent | a9feb6cb11fbf4270519aa7318b89f5becccd87c (diff) | |
download | perl-8d4393cf0f53c9e46fd1338d29417f254bd6d1cd.tar.gz |
Call get-magic once for *glob=$tied
This is a regression in 5.10.0.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4161,7 +4161,11 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV* sstr, const I32 flags) "Undefined value assigned to typeglob"); } else { - GV *gv = gv_fetchsv(sstr, GV_ADD, SVt_PVGV); + STRLEN len; + const char *nambeg = SvPV_nomg_const(sstr, len); + GV *gv = gv_fetchpvn_flags( + nambeg, len, SvUTF8(sstr)|GV_ADD, SVt_PVGV + ); if (dstr != (const SV *)gv) { const char * const name = GvNAME((const GV *)dstr); const STRLEN len = GvNAMELEN(dstr); |