有人能告訴我爲什麼這個字符串不會反序列化嗎?我已經試過的一切(的stripslashes,和addslashes,修剪,等等...)不能反序列化字符串
a:10:{s:8:"order_id";s:13:"9006710350464";s:5:"buyer";s:10:"1303912674";s:3:"app";s:15:"223615011031939";s:8:"receiver";s:10:"1303912674";s:6:"amount";s:2:"20";s:11:"time_placed";s:10:"1326235812";s:11:"update_time";s:10:"1326235818";s:4:"data";s:0:"";s:5:"items";a:1:{i:0;a:7:{s:7:"item_id";s:4:"1_48";s:5:"title";s:49:"I\'m Not Jesus Mommy (Full Movie) - 48 Hour Stream";s:11:"description";s:204:"This is a purcahse to watch I\'m Not Jesus Mommy on FilmDemic Movie Streaming for a period of 48 hours. Once you complete the purchase, your account will have access to watch the movie for up to 48 hours.";s:9:"image_url";s:144:"https://filmdemic.com/apps/fb-streaming/wp-main/wp-content/themes/fd-fb-stream-wpf-child/library/images/titles/slidersize/im_not_jesus_mommy.jpg";s:11:"product_url";s:46:"http://filmdemic.com/apps/fb-streaming/film-1";s:5:"price";s:2:"20";s:4:"data";s:37:"film_id=1&wp_user_id=4&view_length=48";}}s:6:"status";s:6:"placed";}
我得到「錯誤的偏移量370 952個字節」,但這並沒有什麼意義,「米「在Stream中是第370個字節。
謝謝!
請將您的帖子中的代碼顯示爲實際代碼,而不是純文本。序列化數據的未格式化的怪異性使我甚至不願意試圖回答你的問題。 – rdlowrey 2012-02-01 19:07:55
@rdlowrey他的問題是關於反序列化不良數據......這不是關於代碼。如果你不能看到數據,你怎麼修復一個有關格式不正確的序列化數據的錯誤... – 2012-02-01 19:10:17
[PHP Unserialize Offset Error]的可能重複(http://stackoverflow.com/questions/3199491/php-unserialize-偏移錯誤) - 您的序列化字符串已損壞。 – hakre 2012-02-01 19:13:27