#34068 [NEW]: Different Variable-Type after serialization
| From: | clemens at gutweiler dot net | Date: | Wed, 10 Aug 2005 11:58:47 +0000 |
| Subject: | #34068 [NEW]: Different Variable-Type after serialization | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83300@lists.php.net to get a copy of this message | ||
From: clemens at gutweiler dot net
Operating system: Win
PHP version: 5.1.0b3
PHP Bug Type: WDDX related
Bug description: Different Variable-Type after serialization
Description:
------------
The vartype of the 123 key changed after serialization, it should be
consistent.
Reproduce code:
---------------
<?php
$data = array(
'123' => 'zahl',
'Foo' => 'bar',
);
var_dump( $data );
var_dump( wddx_deserialize( wddx_serialize_value( $data ) ) );
highlight_file( __FILE__ );
?>
Expected result:
----------------
array(2) {
["123"]=>
string(4) "zahl"
["Foo"]=>
string(3) "bar"
}
array(2) {
["123"]=>
string(4) "zahl"
["Foo"]=>
string(3) "bar"
}
Actual result:
--------------
array(2) {
[123]=>
string(4) "zahl"
["Foo"]=>
string(3) "bar"
}
array(2) {
["123"]=>
string(4) "zahl"
["Foo"]=>
string(3) "bar"
}
--
Edit bug report at http://bugs.php.net/?id=34068&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34068&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34068&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34068&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34068&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34068&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34068&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34068&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34068&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34068&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34068&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34068&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34068&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34068&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34068&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34068&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34068&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34068&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34068&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34068&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34068&r=mysqlcfg