note 93582 added to function.unserialize

From: Date: Thu, 17 Sep 2009 09:39:30 +0000
Subject: note 93582 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-160772@lists.php.net to get a copy of this message
With regard to might_serialize(), might_unserialize() - which I posted about a week ago on this page. I've found that empy arrays will be serialized, but not unserialized. To patch... in: is_serialized() change: preg_match("/^(i|s|a|o|d):(.*);/si",$val) to: preg_match("/^(i|s|a|o|d):(.*);/si",$val) !== false ---- Server IP: 72.55.140.6 Probable Submitter: 96.50.4.166 ---- Manual Page -- http://www.php.net/manual/en/function.unserialize.php Edit -- https://master.php.net/note/edit/93582 Del: integrated -- https://master.php.net/note/delete/93582/integrated Del: useless -- https://master.php.net/note/delete/93582/useless Del: bad code -- https://master.php.net/note/delete/93582/bad+code Del: spam -- https://master.php.net/note/delete/93582/spam Del: non-english -- https://master.php.net/note/delete/93582/non-english Del: in docs -- https://master.php.net/note/delete/93582/in+docs Del: other reasons-- https://master.php.net/note/delete/93582 Reject -- https://master.php.net/note/reject/93582 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160772) next »