Stop filetest ops from calling FETCH on parent op’s arg
authorFather Chrysostomos <sprout@cpan.org>
Sun, 11 Sep 2011 02:47:59 +0000 (19:47 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Sep 2011 04:46:51 +0000 (21:46 -0700)
commit49498cafba9ef826af2f85193bb77c26f9efbe77
treeb273ce2b856fbb333d01a97c8898b15a17e7649f
parent094a3eec8ad4cfb12d72a98f11e9186594579b57
Stop filetest ops from calling FETCH on parent op’s arg

This is a regression in 5.14.0.

Commit 6f1401dc made ops call get-magic before overloading, but it
ended up making filetest ops call get-magic on the topmost item of the
stack even if the filetest op was not going to use the stack (which
happens for ‘-r bareword’ and plain ‘-r’).

This would affect cases like:

  push @foo, $tied, -r;
pp_sys.c
t/op/filetest.t