Fix up Config.pm use in t/lib/ph.t from change 478.
p4raw-id: //depot/perl@484
gvp = (GV**)hv_fetch(stash,tmpbuf,len,add);
if (tmpbuf != autobuf)
Safefree(tmpbuf);
-
- if (!gv || gv == (GV*)&sv_undef)
+ if (!gvp || *gvp == (GV*)&sv_undef)
return Nullgv;
+ gv = *gvp;
+
+ if (SvTYPE(gv) == SVt_PVGV)
+ GvMULTI_on(gv);
+ else if (!add)
+ return Nullgv;
else
gv_init(gv, stash, nambeg, namend - nambeg, (add & 2));
# just socket.ph and pals.
# -- Kurt Starsinic <kstar@isinet.com>
-use lib '../lib';
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+}
+use Config;
# All the constants which Socket.pm tries to make available:
my @possibly_defined = qw(