summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2013-10-29 20:58:30 +0100
committerNikita Popov <nikic@php.net>2013-10-29 20:58:30 +0100
commit4218e89f8df4ca3897e3aad595e0c2c9cf4c3aca (patch)
tree5270d5aad9a57485cd2d15f7483e65b5b5235439 /ext/reflection/php_reflection.c
parent647e0be64b4cdcc5c94aa245d4d876d193709287 (diff)
downloadphp-git-4218e89f8df4ca3897e3aad595e0c2c9cf4c3aca.tar.gz
Fix bug #65997 by switching to Serializable for GMP
Rather than using get_properties and __wakeup for serialization the code now uses Serializable::serialize() and Serializable::unserialize(). The get_properties handler is switched to a get_debug_info handler. Thus get_gc will now return only the normal properties and not do any modifications, thus fixing the leak. This also avoids a $num property from being publicly visible after the object was dumped or serialized, so that's an extra plus.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions