note 96234 added to function.unserialize

From: Date: Tue, 16 Feb 2010 13:50:46 +0000
Subject: note 96234 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-166005@lists.php.net to get a copy of this message
@skinnepa at hotmail dot com he's implementation is the ONLY ONE that worked for me, I had my MySQL in utf-8 (table and connection) but when I was saving russian serialized characters into a text field nothing was working! thank you^^ function mb_unserialize($serial_str) { $out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str ); return unserialize($out); } ---- Server IP: 69.147.83.197 Probable Submitter: 188.220.36.170 ---- Manual Page -- http://www.php.net/manual/en/function.unserialize.php Edit -- https://master.php.net/note/edit/96234 Del: integrated -- https://master.php.net/note/delete/96234/integrated Del: useless -- https://master.php.net/note/delete/96234/useless Del: bad code -- https://master.php.net/note/delete/96234/bad+code Del: spam -- https://master.php.net/note/delete/96234/spam Del: non-english -- https://master.php.net/note/delete/96234/non-english Del: in docs -- https://master.php.net/note/delete/96234/in+docs Del: other reasons-- https://master.php.net/note/delete/96234 Reject -- https://master.php.net/note/reject/96234 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166005) next »