Anonymous | Login | Signup for a new account | 11-21-2024 20:30 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0003249 | [Quercus] | major | always | 01-14-09 01:11 | 01-14-09 23:49 | |||||||
Reporter | haplo | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | Platform | ||||||||
Status | new | OS | ||||||||||
Projection | none | OS Version | ||||||||||
ETA | none | Fixed in Version | Product Version | |||||||||
Product Build | ||||||||||||
Summary | 0003249: Serializable not supported | |||||||||||
Description |
If an php class implements Serializable the serialization of an instance should be delegated to the instances serialize function. This does not happend. Here is a test: class foo implements Serializable { public $bar = "foobar"; public function unserialize($serialized){ echo "unserialize \n"; $array = unserialize($serialized); foreach ($array as $name => $values) { $this->$name = "unserialized " .$values; } } public function serialize(){ echo "serialize \n"; return serialize(get_object_vars($this)); } } $foo = new foo(); $data = serialize($foo); echo $data; $foo2 = unserialize($data); echo $foo2->bar; Quercus result: O:3:"foo":1:{s:3:"bar";s:6:"foobar";}foobar Apache result: serialize C:3:"foo":29:{a:1:{s:3:"bar";s:6:"foobar";}}unserialize unserialized foobar |
|||||||||||
Steps To Reproduce | ||||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
01-14-09 01:11 | haplo | New Issue | |
01-14-09 23:49 | haplo | Note Added: 0003733 | |
05-01-10 03:17 | sblommers | Issue Monitored: sblommers |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |