|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 15 15:00:01 2026 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']);