Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

Report information
The Basics
Id: 61708
Status: resolved
Priority: 0/
Queue: JSON

People
Owner: Nobody in particular
Requestors: lindahl [...] pbm.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.16
Fixed in: (no value)



Subject: croak() returning line in eval instead of actual caller
#!/usr/bin/perl use strict; use JSON; print to_json( undef ); does: hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at (eval 4) line 153. eval? My script doesn't eval... somehow you've confused that croak(). This is with perl5.8.8 as distributed by CentOS-5.5
I confirmed this problem. Using JSON::XS as backend module causes it. I fixed and uploaded it on CPAN. But the problem still remains with suport_by_pp option. I will fix it in a future versoin. Thanks,
Subject: Re: [rt.cpan.org #61708] croak() returning line in eval instead of actual caller
Date: Thu, 30 Sep 2010 15:29:23 -0700
To: Makamaka Hannyaharamitu via RT <bug-JSON [...] rt.cpan.org>
From: Greg Lindahl <lindahl [...] pbm.com>
Thank you! On Tue, Sep 28, 2010 at 11:44:19AM -0400, Makamaka Hannyaharamitu via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=61708 > > > I confirmed this problem. > Using JSON::XS as backend module causes it. > > I fixed and uploaded it on CPAN. > But the problem still remains with suport_by_pp option. > > I will fix it in a future versoin. > > Thanks, >
On Fri Oct 01 07:29:32 2010, lindahl@pbm.com wrote: Show quoted text
> Thank you! > > On Tue, Sep 28, 2010 at 11:44:19AM -0400, Makamaka Hannyaharamitu via > RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=61708 > > > > > I confirmed this problem. > > Using JSON::XS as backend module causes it. > > > > I fixed and uploaded it on CPAN. > > But the problem still remains with suport_by_pp option. > > > > I will fix it in a future versoin. > > > > Thanks, > >
The remaining issue was fixed in 2.92. Thanks.