ID: 26763 Updated by: [EMAIL PROTECTED] Reported By: krenya at inf dot bme dot hu -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: WinXP Professional SP1 PHP Version: 4.3.4 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-01-02 11:12:21] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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
