Bug #67363 [Fbk->Opn]: Unserialize corrupts data
| From: | mg at artigo dot pl | Date: | Sun, 01 Jan 2017 13:31:21 +0000 |
| Subject: | Bug #67363 [Fbk->Opn]: Unserialize corrupts data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206282@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67363&edit=1
ID: 67363
User updated by: mg at artigo dot pl
Reported by: mg at artigo dot pl
Summary: Unserialize corrupts data
-Status: Feedback
+Status: Open
Type: Bug
Package: Variables related
Operating System: Irrelavant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Dear Nikita,
I wish you a Happy New Year with lots of happiness and joy.
It has been so long since the issue was reported, that we managed to implement some workarounds in
the meantime and we do not encounter it anymore.
That said, if I encounter it again, I will open another issue, ok?
Thanks,
Marcin
Previous Comments:
------------------------------------------------------------------------
[2017-01-01 12:44:29] nikic@php.net
Is someone still encountering this problem in PHP >= 5.6? If so, could you please specify whether
you use opcache? If you do, can you check whether you get a reproducible crash if you set
opcache.protect_memory=1?
------------------------------------------------------------------------
[2014-06-27 11:25:35] mg at artigo dot pl
3 more:
"ticketshop-kilometer-bank" => "ticketshop-kilomfter-(NUL)ank"
"ticketshop-promo-spar-holiday" => "ticketshop-promo.spar(NUL)holiday"
"ticketshop-promo-weekend" => "ticketshop-promo.week(NUL)nd"
------------------------------------------------------------------------
[2014-06-27 11:18:51] mg at artigo dot pl
We just had the same issue on a different server (FCGI 5.4.27)
String currupted by unserialize:
"ticketshop-promo-summer-ticket" => "ticketshop-promo.summ(NUL)r-ticket"
------------------------------------------------------------------------
[2014-06-05 15:33:46] mg at artigo dot pl
I just experienced the same issue on a totally different setup
apache + mod_php 5.5.11 + zend opcache
String "Opinion Leader des Tages"
became "Opinion Leader dfs Taes"
after unserialize.
------------------------------------------------------------------------
[2014-06-02 07:57:12] mg at artigo dot pl
Regarding the original problem with unserialize corruption issue:
In this single case "Make-up & Styling" became "Make-up ' Sty ing"
& = hex 26 became ' = hex 27
l = hex 6c became (nul) = hex 00
The changes in characters are always different and seem random.
It is worth mentioning that the issue appears out of nowhere and can be fixed by restarting the
server. It seems memory related. For this reason it is not possible to provide a bug testing
snippet, because it simply won't create the same issue on another machine, although it may get
it's own unique corruption on a random day.
The issue presents itself always on Apache server (various versions 2-2.4), mod_php or FCGI.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=67363
--
Edit this bug report at https://bugs.php.net/bug.php?id=67363&edit=1