Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Oct 2, 2023

Change Log

Added

Fixed

  • Prevent fatal error when passing empty string to `\DOMDocument`

Changed

Removed

Deprecated

Security


Description

Error:

Fatal error: Uncaught ValueError: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /home/user/scripts/code.php:4
Stack trace:
#0 /home/user/scripts/code.php(4): DOMDocument->loadXML('')
#1 {main}
  thrown in /home/user/scripts/code.php on line 4

@stloyd stloyd changed the title Prevent fatal error when passing empty string to `\DOMDocument Prevent fatal error when passing empty string to \DOMDocument Oct 3, 2023
@norberttech norberttech merged commit 074790a into flow-php:1.x Oct 3, 2023
@stloyd stloyd deleted the empty-xml branch October 3, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants