[php-src] PR #25603: ext/xsl: Fix crash in transformToDoc() with an uninstantiable class

From: Date: Thu, 19 Nov 2026 16:43:15 +0000
Subject: [php-src] PR #25603: ext/xsl: Fix crash in transformToDoc() with an uninstantiable class
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40824@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25603 Author: iliaal XSLTProcessor::transformToDoc() crashes when the return class is abstract, such as Dom\Document, or has a constant expression that cannot be evaluated, because it ignored the result of object_init_ex() and used the zval as a node object. Free the transformed document and return with the pending exception, like the instanceof check above it.

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