[PHP4BETA] serialize() musings...

From: Date: Fri, 09 Apr 1999 12:09:09 +0000
Subject: [PHP4BETA] serialize() musings...
Groups: php.version4 
Request: Send a blank email to php-version4+get-48@lists.php.net to get a copy of this message
1. NOT serializing slots Boris said that we do not absolutely need to be able to NOT serialize() certain slots by kludging a wrapper with a static member array: class C { function wrap($varname, $value = "") { static $store; if ($value != "") $store[$varname] = $value; return $store[$varname]; } } I not not particularly like it. 2. references, loops and serialize() serialize() becomes quite ugly once you have references. Basically, you need to have serialize() and deep_serialize() with the latter being safe against self-referencing structures. Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.shonline.de/ (GPL) -- PHP 4 Beta

« previous php.version4 (#48) next »