This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #77684] Restore the 5.10/12 behaviour of open $fh, ">", \$glob_copy
authorFather Chrysostomos <sprout@cpan.org>
Mon, 13 Sep 2010 07:57:15 +0000 (09:57 +0200)
committerRafael Garcia-Suarez <rgs@consttype.org>
Mon, 13 Sep 2010 07:57:58 +0000 (09:57 +0200)
commit526fd1b4d7270fff44588238f2411032c109da6e
tree0bcb1eeef2931a321b0a5c150e44f0fd71ff45dd
parent25222ff958727e01a3a480924b65ba188c7c3ea2
[perl #77684] Restore the 5.10/12 behaviour of open $fh, ">", \$glob_copy

This restores the perl 5.10/12 behaviour, making open treat \$foo as a
scalar reference if it is a glob copy (SvFAKE).

It also fixes an existing assertion failure that the test now trig-
gers. PerlIOScalar_pushed was not downgrading the sv before set-
ting SvCUR.
ext/PerlIO-scalar/scalar.xs
perlio.c
t/io/open.t