note 107886 added to function.unserialize
| From: | suman dot jis at gmail dot com | Date: | Tue, 13 Mar 2012 09:12:18 +0000 |
| Subject: | note 107886 added to function.unserialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186623@lists.php.net to get a copy of this message | ||
I was getting unserialize() Error at offset error.
If you face similar problem then use the following procedure
$auctionDetails = preg_replace('!s:(\d+):"(.*?)";!se',
"'s:'.strlen('$2').':\"$2\";'",
$dataArr[$i]['auction_details'] );
$auctionDetails = unserialize($auctionDetails);
----
Server IP: 69.147.83.197
Probable Submitter: 118.102.176.18
----
Manual Page -- http://www.php.net/manual/en/function.unserialize.php
Edit -- https://master.php.net/note/edit/107886
Del: integrated -- https://master.php.net/note/delete/107886/integrated
Del: useless -- https://master.php.net/note/delete/107886/useless
Del: bad code -- https://master.php.net/note/delete/107886/bad+code
Del: spam -- https://master.php.net/note/delete/107886/spam
Del: non-english -- https://master.php.net/note/delete/107886/non-english
Del: in docs -- https://master.php.net/note/delete/107886/in+docs
Del: other reasons-- https://master.php.net/note/delete/107886
Reject -- https://master.php.net/note/reject/107886
Search -- https://master.php.net/manage/user-notes.php