|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-31 21:08 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ Right now, the unserialize callback must be defined using an ini setting. It would be more convenient to be able to set it via new option. (This could potentially also allow setting it to a Closure?) BEFORE: $unserializeCallbackHandler = ini_set('unserialize_callback_func', 'my_unserialize_callback'); try { unserialize($value); } finally { ini_set('unserialize_callback_func', $unserializeCallbackHandler); } AFTER: unserialize($value, ['callback' => 'my_unserialize_callback']);