diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-06-29 09:00:32 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-06-29 09:00:32 +0000 |
commit | 0fa56319bf436f5bc52860b8491e91269fb41056 (patch) | |
tree | 6ce2bf3a62522458b139993cedfffb934e42daf3 /mro.c | |
parent | fdef73f9d3c637571d3ab9a9d73990f87b1ad2d9 (diff) | |
download | perl-0fa56319bf436f5bc52860b8491e91269fb41056.tar.gz |
Revert change #31489.
That change was adding a hook to cope with the case when one was
undef'ining *ISA globs, in order to clean up correctly. However, this
broke the case where one was assiging an array ref to @ISA, which
is likely to be more common.
Conclusion: don't undef *ISA. (or more generally don't undef globs
that contain magical variables)
p4raw-link: @31489 on //depot/perl: 5be5c7a687aa37f2ea9dec7988eb57cad1f1ec24
p4raw-id: //depot/perl@31502
Diffstat (limited to 'mro.c')
-rw-r--r-- | mro.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -455,10 +455,8 @@ Perl_mro_isa_changed_in(pTHX_ HV* stash) bool is_universal; struct mro_meta * meta; - const char * const stashname = stash ? HvNAME_get(stash) : NULL; - const STRLEN stashname_len = stash ? HvNAMELEN_get(stash) : 0; - - if(!stash) return; + const char * const stashname = HvNAME_get(stash); + const STRLEN stashname_len = HvNAMELEN_get(stash); if(!stashname) Perl_croak(aTHX_ "Can't call mro_isa_changed_in() on anonymous symbol table"); |