Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3249 | major | always | 01-14-09 01:11 | 01-14-09 23:49 | |
|
|||||
Reporter: | haplo | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | |||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|