cvs: php4 /ext/standard/tests/serialize 004.phpt

From: Date: Thu, 22 May 2003 23:59:37 +0000
Subject: cvs: php4 /ext/standard/tests/serialize 004.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21216@lists.php.net to get a copy of this message
sniper Thu May 22 19:59:37 2003 EDT Added files: /php4/ext/standard/tests/serialize 004.phpt Log: added another test case (due to the problems we saw with 4.3.2RC4) Index: php4/ext/standard/tests/serialize/004.phpt +++ php4/ext/standard/tests/serialize/004.phpt --TEST-- serialize()/unserialize() floats in array. --INI-- precision=12 serialize_precision=100 --FILE-- <?php error_reporting (E_ALL); $a = array(4); $str = serialize($a); print('Serialized array: '.$str."\n"); $b = unserialize($str); print('Unserialized array: '); var_dump($b); print("\n"); $str = serialize(array(4.5)); print('Serialized array: '.$str."\n"); $b = unserialize($str); print('Unserialized array: ') ; var_dump($b); ?> --EXPECT-- Serialized array: a:1:{i:0;i:4;} Unserialized array: array(1) { [0]=> int(4) } Serialized array: a:1:{i:0;d:4.5;} Unserialized array: array(1) { [0]=> float(4.5) }

« previous php.cvs (#21216) next »