#26763 [Opn]: unserialize() callback does not work

From: Date: Fri, 02 Jan 2004 16:12:22 +0000
Subject: #26763 [Opn]: unserialize() callback does not work
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357842@lists.php.net to get a copy of this message
ID: 26763 Updated by: sniper@php.net Reported By: krenya at inf dot bme dot hu Status: Open -Bug Type: Variables related +Bug Type: Documentation problem Operating System: WinXP Professional SP1 PHP Version: 4.3.4 New Comment: There has never been such parameter for unserialize() function. You're supposed to use the php.ini option 'unserialize_callback_func' by setting it either in .htacces, with ini_set() or in php.ini. Reclassified as documentation problem. Previous Comments: ------------------------------------------------------------------------ [2004-01-01 22:58:11] krenya at inf dot bme dot hu Description: ------------ The docs say: mixed unserialize ( string str [, string callback]) Note: The callback parameter was added in PHP 4.2.0 But if I make a call with 2 parameters, I get this: Warning: Wrong parameter count for unserialize()... The unserialize_callback_func directive using ini_set() does not do anything as I get _PHP_Inclomplete_Class-es everywhere. I also tried it with a 4.3.1 Linux CGI but it's the same... Is this feature really implemented? Thanx. Reproduce code: --------------- $x = unserialize('O:1:"a":1:{s:5:"value";s:3:"100";}', 'dynamic_loader'); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26763&edit=1

« previous php.doc (#969357842) next »