summaryrefslogtreecommitdiff
path: root/ext/dom/domimplementation.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-09 12:28:28 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-09 12:28:28 +0100
commit3549f48edc914db041d81ae207400971d1c6c43c (patch)
tree5f9fd954f984cc67f936b18b3ad9a669b5f81d2f /ext/dom/domimplementation.c
parentab92ffee227137ed38ebe2ca8ce26e70da6aa810 (diff)
downloadphp-git-3549f48edc914db041d81ae207400971d1c6c43c.tar.gz
Make createDocument() $namespace nullable
According to the DOM specification, this argument should be nullable. It's also supposed to be a required argument, but not changing that at this point.
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r--ext/dom/domimplementation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c
index b195af5549..24b04f2b68 100644
--- a/ext/dom/domimplementation.c
+++ b/ext/dom/domimplementation.c
@@ -127,7 +127,7 @@ PHP_METHOD(DOMImplementation, createDocument)
char *prefix = NULL, *localname = NULL;
dom_object *doctobj;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ssO!", &uri, &uri_len, &name, &name_len, &node, dom_documenttype_class_entry) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s!sO!", &uri, &uri_len, &name, &name_len, &node, dom_documenttype_class_entry) == FAILURE) {
RETURN_THROWS();
}