This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
d8093b2
)
Integrate with Sarathy.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 27 Feb 2000 04:01:53 +0000
(
04:01
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 27 Feb 2000 04:01:53 +0000
(
04:01
+0000)
p4raw-id: //depot/cfgperl@5279
pp_hot.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_hot.c
b/pp_hot.c
index
6027766
..
b1bbbc7
100644
(file)
--- a/
pp_hot.c
+++ b/
pp_hot.c
@@
-2757,9
+2757,13
@@
S_method_common(pTHX_ SV* meth, U32* hashp)
*(PL_stack_base + TOPMARK + 1) = sv_2mortal(newRV((SV*)iogv));
}
- if (!ob || !SvOBJECT(ob))
+ if (!ob || !(SvOBJECT(ob)
+ || (SvTYPE(ob) == SVt_PVGV && (ob = (SV*)GvIO((GV*)ob))
+ && SvOBJECT(ob))))
+ {
Perl_croak(aTHX_ "Can't call method \"%s\" on unblessed reference",
name);
+ }
stash = SvSTASH(ob);