Re: wddx problems after last change.
| From: | Andrei Zmievski | Date: | Fri, 16 Jun 2000 14:02:19 +0000 |
| Subject: | Re: wddx problems after last change. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21515@lists.php.net to get a copy of this message | ||
On Fri, 16 Jun 2000, Thies C . Arntzen wrote:
> i'd like to change you latest
>
> "Changed WDDX to always serialize arrays as structs."
>
> to somthing smarter. when using <STRUCT> the javascript
> deserializer creates associative arrays (what a suprise) -
> but asooc arrays in javascript suck badly. so i'll walk thru
> the array once to check if we can generate a normal array or
> if we have to ge with a structure.
Hmm. I suppose it would be fine, if slower. Walk through hash keys and
if even one is a string, serialize as struct. You should know that
before that change I checked the first entry of the array to see whether
to serialize as array or struct and people complained..
-Andrei
"The secret of flying is to throw yourself
at the ground, and miss." -- Douglas Adams