From: Artur Bergman Date: Tue, 23 Oct 2001 18:27:27 +0000 (+0000) Subject: Call setmagic on the referent we are blessing. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf95df474ef4c732b38deb40ee7e140fa007de57;p=p5sagit%2Fp5-mst-13.2.git Call setmagic on the referent we are blessing. p4raw-id: //depot/perl@12607 --- diff --git a/sv.c b/sv.c index 6a6c33b..ecf86e5 100644 --- a/sv.c +++ b/sv.c @@ -7205,6 +7205,8 @@ Perl_sv_bless(pTHX_ SV *sv, HV *stash) else SvAMAGIC_off(sv); + SvSETMAGIC(tmpRef); + return sv; }