mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Update OOM error for DOMImplementation::createDocumentType (#14329)
Most of these kinds of error handling were already changed previously, but this one was apparently missed.
This commit is contained in:
@@ -100,8 +100,8 @@ PHP_METHOD(DOMImplementation, createDocumentType)
|
||||
xmlFree(localname);
|
||||
|
||||
if (doctype == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to create DocumentType");
|
||||
RETURN_FALSE;
|
||||
php_dom_throw_error(INVALID_STATE_ERR, /* strict */ true);
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
DOM_RET_OBJ((xmlNodePtr) doctype, NULL);
|
||||
|
||||
Reference in New Issue
Block a user