[php-src] PR #23067: Fix segfault comparing uninitialized SimpleXMLElement instances

From: Date: Wed, 05 Aug 2026 13:27:27 +0000
Subject: [php-src] PR #23067: Fix segfault comparing uninitialized SimpleXMLElement instances
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37555@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23067 Author: iliaal sxe_objects_compare reaches sxe1->document->ptr whenever both operands have a NULL node, without checking that document is set. A subclass whose constructor skips parent::__construct leaves both fields NULL, so new MySXE == new MySXE dereferences NULL and segfaults. Two unset documents now compare equal, and an unset one against a live document is uncomparable, matching the node comparison directly above.

« previous php.git-pulls (#37555) next »