diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-10-07 12:46:29 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-10-07 12:46:29 +0000 |
commit | b6b56ba87a0fa48d9fe36e367021394239b7f7ea (patch) | |
tree | bcfa50eb7e01064414485939519ccf34f5467c9a /ext/simplexml/simplexml.c | |
parent | 264d6db5a6164bb21b8e5a01482ae8372bb599a4 (diff) | |
download | php-git-b6b56ba87a0fa48d9fe36e367021394239b7f7ea.tar.gz |
Fixed bug #49800 (SimpleXML allow (un)serialize() calls without warning).
# original patch by wmeler at wp-sa dot pl
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r-- | ext/simplexml/simplexml.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index ca6d7cb4a8..0c2fbe6e68 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -2531,7 +2531,8 @@ PHP_MINIT_FUNCTION(simplexml) sxe_object_handlers.get_constructor = zend_get_std_object_handlers()->get_constructor; sxe_object_handlers.get_class_entry = zend_get_std_object_handlers()->get_class_entry; sxe_object_handlers.get_class_name = zend_get_std_object_handlers()->get_class_name; - + sxe_class_entry->serialize = zend_class_serialize_deny; + sxe_class_entry->unserialize = zend_class_unserialize_deny; php_libxml_register_export(sxe_class_entry, simplexml_export_node); |