This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
FAKE typeglobs seriously busted (with patch)
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>
Sun, 1 Sep 1996 22:02:06 +0000 (22:02 +0000)
committerAndy Dougherty <doughera@lafcol.lafayette.edu>
Sun, 1 Sep 1996 22:02:06 +0000 (22:02 +0000)
commit8646b087399096312f7ab0da38502aa56885a977
tree73ba7a6fbf166edc03c254c65f5f45778c7ffe12
parent4dfc412b7eb33b2ea67a288317dc834237cb0efc
FAKE typeglobs seriously busted (with patch)

Handling of fake typeglobs (scalars that are really globs
in disguise) is seriously busted since 5.002 (it wasn't
so in 5.001n).
The problem is that mg_get() on a glob calls gv_efullname()
which might coerce its first arg to a string.

Sub-critical patch to conceivably fix some %SIG problems. (Shared hash key
weren't being properly detected by some of the sig magic, but as shared
hash keys wouldn't normally be used in %SIG it's unlikely this is a
significant problem.)

This patch changes neither behavior nor performance.  However, it does
reduce code size and improve maintainability by combining some common
code in gv_fullname() and gv_efullname().
mg.c