From: krenya at inf dot bme dot hu
Operating system: WinXP Professional SP1
PHP version: 4.3.4
PHP Bug Type: Variables related
Bug description: unserialize() callback does not work
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 bug report at http://bugs.php.net/?id=26763&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26763&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26763&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26763&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26763&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26763&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26763&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26763&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26763&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26763&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26763&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26763&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26763&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26763&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26763&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26763&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26763&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26763&r=float