note 21992 deleted from function.md5 by jmcastagnetto

From: Date: Wed, 07 Aug 2002 19:47:04 +0000
Subject: note 21992 deleted from function.md5 by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34478@lists.php.net to get a copy of this message
OOPS! md5(join('', get_object_vars($obj))) will return the word "Array" for any member that is an array, and likewise for object members. Not so smart after all! md5(serialize($obj)) is probably the best way to hash an object. (I stand self-corrected :)

« previous php.notes (#34478) next »