[php-src] PR #14999: Resolve TODOs in ext/dom around nullable content

From: Date: Wed, 17 Jul 2024 21:15:56 +0000
Subject: [php-src] PR #14999: Resolve TODOs in ext/dom around nullable content
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-27325@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/14999 Author: nielsdos It's indeed possible this is NULL. When you create a new text-like node in libxml and pass NULL as content, you do get NULL in the content field instead of the empty string. You can hit this by creating DOMText or DOMComment directly and not passing any argument. This could also be created internally. We refactor the code such that this detail is hidden and we add a test to check that it correctly throws an exception.

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