Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for [perl #65582] anon globs segfaulting
The following code has had differing behaviours: my $io_ref = *STDOUT{IO}; my $glob = *$io_ref; defined($glob) "$glob" -------------- ------- 5.8.8 false "" with uninit warning 5.10.0 true (coredump) this commit true "" $glob is essentially an anonymous typeglob (no NAME, EGV or GvSTASH). It shouldn't register as undefined since it's clearly a valid GV with a valid IO slot; Stringifying to "" seems to be the right thing, and not warning seems right too, since its not undef.
- Loading branch information
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters