note 76977 added to function.unserialize

From: Date: Wed, 08 Aug 2007 16:46:57 +0000
Subject: note 76977 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-129337@lists.php.net to get a copy of this message
Reply to eoin's post: The regular expression you used to unserialize a PHP session file won't work if the session file contains string variable which contains character "|". As I can see now, there is no any regular expression that can easily split data in a PHP session file. To read data from a session file, we may have to write a function to read content from the file, and then parse the content. (This reply was also posted at http://www.php.net/manual/en/function.serialize.php to reply Erudd's post) ---- Server IP: 69.147.83.197 Probable Submitter: 208.67.191.194 ---- Manual Page -- http://www.php.net/manual/en/function.unserialize.php Edit -- https://master.php.net/note/edit/76977 Del: integrated -- https://master.php.net/note/delete/76977/integrated Del: useless -- https://master.php.net/note/delete/76977/useless Del: bad code -- https://master.php.net/note/delete/76977/bad+code Del: spam -- https://master.php.net/note/delete/76977/spam Del: non-english -- https://master.php.net/note/delete/76977/non-english Del: in docs -- https://master.php.net/note/delete/76977/in+docs Del: other reasons-- https://master.php.net/note/delete/76977 Reject -- https://master.php.net/note/reject/76977 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129337) next »