New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
junk and uninit'ed values in tied scalars #8223
Comments
From lallip@cs.rpi.eduCreated by lallip@cs.rpi.eduThe following was posted to c.l.p.m on 2005-11-19, by Eric Roode, In the past month, three bugs have been reported in my Readonly Here is a short program that illustrates bug #1: sub foo::TIESCALAR { bless {value => $_[1]}, $_[0] } This prints "testp\cX\c@" or other similar garbage. The first Oddly, with a longer string: sub foo::TIESCALAR { bless {value => $_[1]}, $_[0] } it prints "I snort the nose, Lucifer!I snort the nose, Lucifer!" as print "$test $test\n"; there is no buggy behavior. Here is a short program that illustrates bug #2: use warnings; This gives the warning Finally, the mysterious Bug #3: sub foo::TIESCALAR { bless {value => $_[1]}, $_[0] } This prints "no". Amusingly, change the "print" line to: print +(lc $var eq lc $VAR) ? 'yes' : 'no'; and it prints "yes". I had several friends try out the code I posted above for "bug Perl Info
|
From @ysthOn Tue, Nov 22, 2005 at 05:09:36PM -0800, lallip @ cs. rpi. edu wrote:
Hmm, does Robin's #26192 fix this, too?
Fixed in blead, probably by #22163, which Nicholas has hesitated to
Still a problem in blead. I hope any fix to this would make something |
The RT System itself - Status changed from 'new' to 'open' |
From @ysthOn Wed, Nov 23, 2005 at 07:17:30PM -0800, Yitzchak Scott-Thoennes wrote:
Yes, it does. Thinking ahead to 5.8.9, I'm not sure how well that
Nope, this was fixed by Rafael's patch #22074; my #22163 was a
This does it, if a little heavy-handedly: Inline Patch
|
From robin@cpan.orgOn Mon, Nov 28, 2005 at 01:26:31AM -0800, Yitzchak Scott-Thoennes wrote:
I've just had a quick look at this, and found that maintperl won't Still, it shouldn't be hard to fix that and backport the patch to Robin |
From robin@cpan.orgThe below seems okay against 5.8.x. Robin Inline Patch
|
From @rgarciaOn 28/11/05, Yitzchak Scott-Thoennes <sthoenna@efn.org> wrote:
Thanks, applied as change #28684 (I added a regression test.)
|
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37731 (status was 'resolved')
Searchable as RT37731$
The text was updated successfully, but these errors were encountered: