Getting rid of PHP_Incomplete_Class and "unserialize_callback_func"

From: Date: Mon, 06 Aug 2018 13:08:15 +0000
Subject: Getting rid of PHP_Incomplete_Class and "unserialize_callback_func"
Groups: php.internals 
Request: Send a blank email to internals+get-103047@lists.php.net to get a copy of this message
Hello, I recently submitted https://bugs.php.net/76681: Make unserialize() handle a new "callback" option entry The full story is that I'd like a way to get rid of any PHP_Incomplete_Class in my code. The way to do it currently is to change the "unserialize_callback_func" ini setting at runtime and define a throwing callable. But this feels like bad design... Do we want a better way to do it? Note that this should also apply to nested calls to unserialize (since the Serializable interface encourages doing so.) Nicolas

« previous php.internals (#103047) next »