Skip Menu |

This queue is for tickets about the WDDX CPAN distribution.

Report information
The Basics
Id: 5119
Status: new
Priority: 0/
Queue: WDDX

People
Owner: Nobody in particular
Requestors: frantisekb [...] roamsecure.net
Cc:
AdminCc:

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



From: "Frantisek Brabec" <frantisekb [...] roamsecure.net>
To: "'Andy Lester'" <andy [...] petdance.com>
Subject: wddx
Date: Thu, 29 Jan 2004 18:44:01 -0500
Andy - we emailed before about the WDDX module. I think I found another problem. When you use the hash2wddx or array2wddx functions and one of the values within the hash/array is undef, the whole thing crashes. This is because the function recurses into objects ARRAY or HASH but it assumes anything else to be of type string. And when it tries to treat undef as string, it involves creation of an object of type WDDX::String which fails here croak "You must supply a value when creating a new $class object\n" unless defined $value; This results in the whole script quitting. I am not sure it's supposed to be that way. If it's recursing and it hits undef, it should really translate it into null object. Please look into it. Thanks. Frantisek