]> granicus.if.org Git - php/commit
Fixed serialization of non string values on __sleep
authorJuan Basso <jrbasso@gmail.com>
Fri, 6 Feb 2015 04:45:04 +0000 (23:45 -0500)
committerJuan Basso <jrbasso@gmail.com>
Mon, 9 Mar 2015 13:04:34 +0000 (09:04 -0400)
commitcbdeccd6edbd08b954f7f915d0d99a7e787f0fb6
tree05c48eb9fb59ef7cb6c599ddd13804912bcc444d
parent2f156c61f19a889c8ed39fe8eb3b3220555db647
Fixed serialization of non string values on __sleep

Returning just N; (null) on the __sleep makes the number of fields/values be incomplete and corrupting the generated value from serialize, making impossible to unserialize it.
ext/standard/tests/serialize/serialization_objects_016.phpt [new file with mode: 0644]
ext/standard/var.c