Skip to content

Commit defc0be

Browse files
authored
ext/dom: Returning a boolean value using RETURN_BOOL (#21188)
1 parent 8032d6f commit defc0be

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/dom/xpath.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,7 @@ PHP_METHOD(DOMXPath, registerNamespace)
227227
RETURN_THROWS();
228228
}
229229

230-
if (xmlXPathRegisterNs(ctxp, prefix, ns_uri) != 0) {
231-
RETURN_FALSE;
232-
}
233-
RETURN_TRUE;
230+
RETURN_BOOL(xmlXPathRegisterNs(ctxp, prefix, ns_uri) == 0);
234231
}
235232
/* }}} */
236233

0 commit comments

Comments
 (0)