]> granicus.if.org Git - php/commit
Throw on uninitialized SimpleXMLElement
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 13 Aug 2020 13:52:17 +0000 (15:52 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 13 Aug 2020 14:13:02 +0000 (16:13 +0200)
commitfc7bab3aee68fd7917c9fe2fd6abc2abe510e64d
tree89026155032c6999ad506af5ebca410f97177026
parentf5e6f9bd27d09b5fef6e0170c43a97a035067b7a
Throw on uninitialized SimpleXMLElement

Elevate this warning into an Error, as usual. Add a few checks
in places that were missing them.
ext/simplexml/php_simplexml_exports.h
ext/simplexml/simplexml.c
ext/simplexml/tests/SimpleXMLElement_xpath.phpt
ext/simplexml/tests/simplexml_uninitialized.phpt [new file with mode: 0644]