[php-src] PR #19990: Fix GH-19988: zend_string_init with NULL pointer in simplexml (UB)

From: Date: Mon, 29 Sep 2025 13:22:07 +0000
Subject: [php-src] PR #19990: Fix GH-19988: zend_string_init with NULL pointer in simplexml (UB)
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33381@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19990 Author: nielsdos Normally, simplexml cannot import document nodes, but xsl allows to circumvent this. A document does not have a name, so we return the empty string in that case. While we could add an explicit check, we might as well switch the macro to a form that would be more optimal anyway as many tag names can be single characters. The test was added in xsl because adding it in simplexml would break out-of-tree builds of simplexml.

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