RFC: Improve unserialize() error handling

Project Governance
Author
Target
8.3
PHP's current error reporting in unserialize() is very inconsistent, making it hard to reliably handle errors that occur during unserialization.

Add the \UnserializationFailedException and wrap any Throwables in PHP 8.x?

Overall Results

Yes
No
Yes
20 Votes (63%)
No
12 Votes (38%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Increase the severity of emitted E_NOTICE to E_WARNING in PHP 8.x?

Overall Results

Yes
No
Yes
33 Votes (94%)
No
2 Votes (6%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Throw \UnserializationFailedException instead of emitting E_NOTICE/E_WARNING in PHP 9.0?

Overall Results

Yes
No
Yes
23 Votes (74%)
No
8 Votes (26%)

Voting Timeline

Dates based on UTC

Voting Breakdown