summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorRick Delaney <rick@consumercontact.com>2006-12-15 18:28:25 -0500
committerSteve Peters <steve@fisharerojo.org>2006-12-18 15:36:11 +0000
commitc38a65302a7e2e2ea9b8748d368c87d573add6fd (patch)
tree1dff559dcefc23bbb14ba21e194e8d9712ab428e /pp_ctl.c
parent1151960ed7fc317458b67c83e733c90ee7bbf4fd (diff)
downloadperl-c38a65302a7e2e2ea9b8748d368c87d573add6fd.tar.gz
Re: [perl #41071] require stringifies code references in tied @INC
Message-ID: <20061216042825.GB23501@localhost.localdomain> p4raw-id: //depot/perl@29584
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 11554c9486..36f0963c21 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3150,6 +3150,8 @@ PP(pp_require)
for (i = 0; i <= AvFILL(ar); i++) {
SV * const dirsv = *av_fetch(ar, i, TRUE);
+ if (SvTIED_mg((SV*)ar, PERL_MAGIC_tied))
+ mg_get(dirsv);
if (SvROK(dirsv)) {
int count;
SV **svp;