Skip Menu |

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 51679
Status: resolved
Priority: 0/
Queue: Devel-Declare

People
Owner: Nobody in particular
Requestors: MAUKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.005011
Fixed in: (no value)



Subject: toke_scan_str doesn't handle errors, returns garbage
toke_scan_str returns bogus values such as -141784940 if parsing fails. I think this is because S_scan_str returns NULL, which is not handled by dd_toke_scan_str. My preferred fix would be making toke_scan_str return undef in case of failure, but even a simple 'if (!s) { return -1; }' in dd_toke_scan_str would be better than the current behavior.
Patch: http://github.com/rafl/devel-declare/pull/3 P.S. Any of the 17 (!) maintainers know why it hasn't been updated in the last 7 months?
Fixed in Devel-Declare 0.006007, just uploaded to CPAN.