note 44136 added to ref.wddx

From: Date: Thu, 15 Jul 2004 21:53:49 +0000
Subject: note 44136 added to ref.wddx
Groups: php.notes 
Request: Send a blank email to php-notes+get-73331@lists.php.net to get a copy of this message
PHP's WDDX is useful only for exchanging data between PHP applications, but definetly not for exchanging data between different languages (which actually defeats the purpose of WDDX). For example: $hash1 = array ("2" => "Two", "4" => "Four", "5" => "Five"); $hash2 = array ("0" => "Zero", "1" => "One", "2" => "Two"); $hash1 will be serialized as hash, but $hash2 will be serialized as array/list, because the key happen to be a sequence starting from 0. Unless the library provide a way for users to specify the type, it can never be used for cross-platform data exchange. ---- Manual Page -- http://www.php.net/manual/en/ref.wddx.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44136 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44136&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44136&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73331) next »