This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Stop reset from clearing aliases to globs
authorFather Chrysostomos <sprout@cpan.org>
Tue, 13 Aug 2013 12:55:12 +0000 (05:55 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 13 Aug 2013 12:56:49 +0000 (05:56 -0700)
commit61e9f3fe948d8c2d882f7a4be9cb7d0ea1aefd65
tree5c9a3c585ba1e28793aa041f67af1437c3998412
parent0d25b9d4b6340f0323b6dc042a776cecfc466b00
Stop reset from clearing aliases to globs

If $z has been aliased to *foo, then reset("z") would turn off the
SvOK flags on *foo, putting it in an inconsistent state.  This could
cause crashes.
sv.c
t/op/reset.t