note 124608 added to function.unserialize
| From: | hadley8899 at gmail dot com | Date: | Mon, 13 Jan 2020 13:58:38 +0000 |
| Subject: | note 124608 added to function.unserialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213874@lists.php.net to get a copy of this message | ||
For the people who are getting the error
PHP Notice: unserialize(): Error at offset 191 of 285 bytes in ...
and are getting the data from a database, Make sure that you have the database set the the correct
encoding, I had the database set as latin1_swedish_ci and all of the data looked perfect, Infact
when i copied it into a online unserialize it worked fine. I changed the collation to
utf8mb4_unicode_ci and all worked fine.
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.195 (proxied: 2a02:c7f:b842:6600:58e1:dcf9:b810:227c)
----
Manual Page -- http://php.net/manual/en/function.unserialize.php
Edit -- https://master.php.net/note/edit/124608
Del: integrated -- https://master.php.net/note/delete/124608/integrated
Del: useless -- https://master.php.net/note/delete/124608/useless
Del: bad code -- https://master.php.net/note/delete/124608/bad+code
Del: spam -- https://master.php.net/note/delete/124608/spam
Del: non-english -- https://master.php.net/note/delete/124608/non-english
Del: in docs -- https://master.php.net/note/delete/124608/in+docs
Del: other reasons-- https://master.php.net/note/delete/124608
Reject -- https://master.php.net/note/reject/124608
Search -- https://master.php.net/manage/user-notes.php