Export to GitHub

perl-compiler - issue #148

Bareword filehandles do not work


Posted on Nov 5, 2013 by Helpful Panda

What steps will reproduce the problem? Output from testc.sh

FAIL ./ccode147 'open(FH, ">", "foo"); print FH "1\n"; close FH; print -s "foo"' => '0' Expected: '2'

What version of the product are you using? On what operating system? Perl 5.14.3 CentOS 6 32-bit

Comment #1

Posted on Nov 5, 2013 by Grumpy Rhino

(No comment was entered for this change.)

Comment #2

Posted on Nov 5, 2013 by Grumpy Rhino

Issue 149 has been merged into this issue.

Comment #3

Posted on Nov 5, 2013 by Grumpy Rhino

(No comment was entered for this change.)

Comment #4

Posted on Nov 6, 2013 by Grumpy Rhino

(No comment was entered for this change.)

Comment #5

Posted on Nov 6, 2013 by Grumpy Rhino

Fails in all versions but 5.6

Comment #6

Posted on Nov 6, 2013 by Grumpy Rhino

Issue 158 has been merged into this issue.

Comment #7

Posted on Nov 6, 2013 by Grumpy Rhino

Issue 164 has been merged into this issue.

Comment #8

Posted on Nov 6, 2013 by Grumpy Rhino

Fixed with commit 271691179fca1b4b4991504951efce822654ada8 Author: Reini Urban Date: Wed Nov 6 16:26:14 2013 -0600

C 1.42_51: preserve TAINT -T and -t, fixes #148 and #151

-T/-t requires perlcc -T/-t option, but the state is now properly restored in
the executable also.
Fixes issue #151 (all tests pass now for perlcc -T -r t/CORE/comp/opsubs.t)

Make B::C taint safer
As sideeffect this also fixes #148, bareword filehandles.

Comment #9

Posted on Nov 12, 2013 by Grumpy Rhino

Issue 164 has been merged into this issue.

Comment #10

Posted on Nov 12, 2013 by Grumpy Rhino

Issue 154 has been merged into this issue.

Comment #11

Posted on Nov 12, 2013 by Grumpy Rhino

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Critical Milestone-NextRelease