|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78472 Crash on unserializing large dataset
Submitted: 2019-08-28 14:54 UTC Modified: 2019-08-29 06:13 UTC
From: martin at tiogatours dot nl Assigned: nikic (profile)
Status: Closed Package: Reproducible crash
PHP Version: 7.4.0beta4 OS: Windows 10 x64
Private report: No CVE-ID: None
 [2019-08-28 14:54 UTC] martin at tiogatours dot nl
I got unexpected PHP crashes when unserializing a object. There is no recursiveness in the serialized object as the data is created from a JSON object.

However, when you disable the recursive ArrayObject creation, the script succeeds. Also, when creating a recursive stdClass(), the problem doesn't exist

Test script:
Error unserializing with ArrayObject:

This succeeds with the stdClass:

Expected result:
Valid unserializing


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-28 15:03 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2019-08-28 15:03 UTC]
We fixed a couple of serialization related bugs in 7.4 recently, and both of your  examples run fine on current 7.4 HEAD. So this will be resolved in the next release :)
 [2019-08-29 06:13 UTC] martin at tiogatours dot nl
Thanks! Keep up the good work!
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Mar 30 07:01:24 2020 UTC