Skip to content

DOMDocument::loadXML(): document the ValueError for an empty string - #5968

Merged
lacatoire merged 1 commit into
php:masterfrom
qodelicious:domdocument-loadxml-empty-valueerror
Oct 19, 2026
Merged

lacatoire merged 1 commit into
php:masterfrom
qodelicious:domdocument-loadxml-empty-valueerror

Conversation

@qodelicious

Copy link
Copy Markdown
Contributor

As of PHP 8.0.0, DOMDocument::loadXML() throws a ValueError when source is an empty string, but the Errors section still described the old warning. Updated the Errors section and added a changelog entry. Checked with PHP 8.4 ("Argument #1 ($source) must not be empty").

Fixes #2245

@qodelicious
qodelicious requested a review from ndossche as a code owner October 19, 2026 05:08
@lacatoire
lacatoire merged commit 587b7ec into php:master Oct 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOMDocument::loadXML throws ValueError for empty string since PHP 8

2 participants