]> granicus.if.org Git - php/commit
Populate hashtable of __sleep() properties
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 2 Jan 2020 10:11:01 +0000 (11:11 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 2 Jan 2020 10:14:01 +0000 (11:14 +0100)
commit90fea675462252c668b8c0c8b5b94ece8d4f24a7
treee135911080a5a3f6465b6453f927a9d62233262a
parentde0ca4734e2e8b19fabe06027439ceb81ea2eb13
Populate hashtable of __sleep() properties

Instead of populating a hashtable of property names and then
directly serializing.

This has the advantage of a) detecting duplicate properties more
precisely and b) gives us the ability to discard values without
rewriting the serialization string after the fact for GH-5027.
ext/standard/tests/serialize/sleep_mangled_name_clash.phpt [new file with mode: 0644]
ext/standard/var.c