note 34991 added to function.serialize

From: Date: Thu, 14 Aug 2003 10:43:15 +0000
Subject: note 34991 added to function.serialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-54152@lists.php.net to get a copy of this message
Sorry there's an error in one line of the symm_crypt function: //fit strlen of $key to strlen of $value if (strlen($value) < strlen($key)){ //cut the key to strlen of $value $key=substr($key,0,(strlen($value))); } elseif (strlen($value) > strlen($key)){ // duplicate key & cut the key to strlen of $value $key=substr(str_repeat($key, 1+((int)(strlen($value) / strlen($key)))), 0, strlen($value)); } Svn. ---- Manual Page -- http://www.php.net/manual/en/function.serialize.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34991 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34991&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34991&report=yes

« previous php.notes (#54152) next »