Re: CVS update: php3/functions

From: Date: Sun, 10 Jan 1999 15:34:19 +0000
Subject: Re: CVS update: php3/functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3448@lists.php.net to get a copy of this message
On Sun, Jan 10, 1999 at 12:20:14PM -0500, sas wrote: > Date: Sunday January 10, 1999 @ 12:20 > Author: sas > > Update of /repository/php3/functions > In directory asf:/u/temp/cvs-serv8955/functions > > Modified Files: > wddx.c > Log Message: > Extend the unserializer > It's fairly complete now - I don't think the unserializer should eval the variables itself, it's now as easy as $str = wddx_serializer(&$data, &$abc); [...] eval wddx_unserializer($str); to get the variables back. See the attached script to see what is possible. It would make the parser much more complex to recreate arrays and such things, but if anybody feels inclined to implement that, I won't reject it. ;) Sascha

<? function wt($s) { echo $s."\n\n".wddx_unserialize($s)."\n\n"; } $abc = "def"; $str = wddx_serialize(&$abc, "foo", "bar"); wt($str); $data = array(123, 567, 3.1416); $str = wddx_serialize(array("abc" => "def", 190 => 30, "data" => $data)); wt($str); $str = wddx_serialize(&$data); wt($str);
« previous php.dev (#3448) next »