Message-ID: <
20001224040949.B3090@darkstar>
p4raw-id: //depot/perl@8236
Perl_gv_handler(pTHX_ HV *stash, I32 id)
{
dTHR;
- MAGIC *mg = mg_find((SV*)stash,'c');
+ MAGIC *mg;
AMT *amtp;
+ if (!stash)
+ return Nullcv;
+ mg = mg_find((SV*)stash,'c');
if (!mg) {
do_update:
Gv_AMupdate(stash);
Perl_mg_find(pTHX_ SV *sv, int type)
{
MAGIC* mg;
+ if (!sv)
+ return 0;
for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) {
if (mg->mg_type == type)
return mg;
mytest qr/^SCALAR package attributes may clash with future reserved words: ["']?plugh["']? /;
BEGIN {++$ntests}
+eval 'package Cat; my Cat @socks;';
+mytest qr/^Can't declare class for non-scalar \@socks in "my"/;
+BEGIN {++$ntests}
+
sub X::MODIFY_CODE_ATTRIBUTES { die "$_[0]" }
sub X::foo { 1 }
*Y::bar = \&X::foo;