Bug #17948: unserialize() failure

From: Date: Mon, 24 Jun 2002 15:57:26 +0000
Subject: Bug #17948: unserialize() failure
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11932@lists.php.net to get a copy of this message
From: cox@idecnet.com Operating system: RH PHP version: 4.2.1 PHP Bug Type: Strings related Bug description: unserialize() failure file: bug_serialize <?php error_reporting(E_ALL); $ser = 'a:5:{s:6:"lineas";a:1:{i:0;a:7:{s:7:"ldivisa";s:3:"eur";s:9:"letcambio";s:1:"1";s:9:"leimporte";s:3:"200";s:7:"letotal";s:3:"200";s:9:"ldtcambio";s:1:"1";s:9:"ldimporte";s:2:"50";s:7:"ldtotal";s:2:"50";}}s:3:"lte";i:200;s:3:"ltd";i:50;s:10:"ltgtosefec";d:93,66;s:3:"lrl";d:56,34;}'; var_dump(unserialize($ser)); ?> With PHP 4.1.1 array(5) { ["lineas"]=> array(1) { [0]=> array(7) { ["ldivisa"]=> string(3) "eur" ["letcambio"]=> string(1) "1" ["leimporte"]=> string(3) "200" ["letotal"]=> string(3) "200" ["ldtcambio"]=> string(1) "1" ["ldimporte"]=> string(2) "50" ["ldtotal"]=> string(2) "50" } } ["lte"]=> int(200) ["ltd"]=> int(50) ["ltgtosefec"]=> float(93) ["lrl"]=> float(56) } With PHP 4.2.1 Notice: unserialize() failed at offset 253 of 280 bytes in bug_serialize on line 4 bool(false) Tomas V.V.Cox -- Edit bug report at http://bugs.php.net/?id=17948&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17948&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17948&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17948&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17948&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17948&r=support Expected behavior: http://bugs.php.net/fix.php?id=17948&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17948&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17948&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17948&r=globals

« previous php.bugs (#11932) next »