php / php/doc-en

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

Open
#2,245 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Extension: dom
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

… and this is not yet documented, neither as a fact in the errors section, nor as a changelog entry.

see:

https://github.com/php/doc-en/blob/7c9f1adb4b7d55a7a37b0503ec895412a6ecc656/reference/dom/domdocument/loadxml.xml#L55-L59

and

https://3v4l.org/qEWjm

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with reference/dom/domdocument/loadxml.xml, especially the linked lines around the errors section. Document that loadXML() throws ValueError for an empty string since PHP 8 and add the corresponding changelog entry; the issue is done when both locations describe this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.