summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-06-21 18:18:33 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-06-22 23:16:40 -0700
commit5a3c73497c32449b69801228df80f2b7aafce13b (patch)
tree05f45c5392dc06b5fee225810c282c978e0a10bf /dump.c
parent66379c06cdfaf5fb5c63d8518f0a1e65d80b1072 (diff)
downloadperl-5a3c73497c32449b69801228df80f2b7aafce13b.tar.gz
dump.c: Dump PV fields of SVt_PVIOs
Yes, these can hold PVs when source filters are involved.
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index caa27c1e69..e7900c35bb 100644
--- a/dump.c
+++ b/dump.c
@@ -1660,7 +1660,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
return;
}
- if (type <= SVt_PVLV && !isGV_with_GP(sv)) {
+ if ((type <= SVt_PVLV && !isGV_with_GP(sv))
+ || (type == SVt_PVIO && IoFLAGS(sv) & IOf_FAKE_DIRP)) {
const bool re = isREGEXP(sv);
const char * const ptr =
re ? RX_WRAPPED((REGEXP*)sv) : SvPVX_const(sv);