summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-03-12 02:45:09 +0100
committerJames E Keenan <jkeenan@cpan.org>2022-03-14 07:17:54 -0400
commit7e37a5ec67cea60cb18a6d77313c715a9ee1577e (patch)
tree50d8cbb84bfae8dfd5e4277d7754bc373730b09a /doio.c
parentd6b487cec2690eccc59f18bd6c3803ea06b3c9d6 (diff)
downloadperl-7e37a5ec67cea60cb18a6d77313c715a9ee1577e.tar.gz
Revert "Fix GH Issue #19472: read warnings from open($fh,">",\(my $x))"
This reverts commit 8b03aeb95ab72abdb2fa40f2d1196ce42f34708d. This is causing BBC breakage, and its unimport and grey zone enough that we can pick it up in 5.37 when we have more time to deal with it.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/doio.c b/doio.c
index 4009545ffc..87790da137 100644
--- a/doio.c
+++ b/doio.c
@@ -639,16 +639,6 @@ Perl_do_open6(pTHX_ GV *gv, const char *oname, STRLEN len,
goto say_false;
}
#endif /* USE_STDIO */
- if (SvROK(*svp) && !sv_isobject(*svp)) {
- /* if they pass in a reference and its not an object
- * and the reference is to undef, "autovivify" it to
- * the empty string. See GH Issue #19472
- */
- SV *sv= SvRV(*svp);
- if (!SvOK(sv) && !SvREADONLY(sv))
- sv_setpvs(MUTABLE_SV(sv),"");
- }
-
p = (SvOK(*svp) || SvGMAGICAL(*svp)) ? SvPV(*svp, nlen) : NULL;
if (p && !IS_SAFE_PATHNAME(p, nlen, "open")) {