Skip to content

Commit 5d035b5

Browse files
committed
fix data types
1 parent c6ff5be commit 5d035b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/dom/document.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ int dom_document_standalone_read(dom_object *obj, zval *retval)
382382
int dom_document_standalone_write(dom_object *obj, zval *newval)
383383
{
384384
xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj);
385-
int standalone;
385+
zend_long standalone;
386386

387387
if (docp == NULL) {
388388
php_dom_throw_error(INVALID_STATE_ERR, 0);
@@ -978,9 +978,9 @@ PHP_FUNCTION(dom_document_import_node)
978978
xmlNodePtr nodep, retnodep;
979979
dom_object *intern, *nodeobj;
980980
int ret;
981-
zend_long recursive = 0;
981+
zend_bool recursive = 0;
982982

983-
if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO|l", &id, dom_document_class_entry, &node, dom_node_class_entry, &recursive) == FAILURE) {
983+
if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO|b", &id, dom_document_class_entry, &node, dom_node_class_entry, &recursive) == FAILURE) {
984984
return;
985985
}
986986

0 commit comments

Comments
 (0)