mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/dom: Returning a boolean value using RETURN_BOOL (#21188)
This commit is contained in:
@@ -227,10 +227,7 @@ PHP_METHOD(DOMXPath, registerNamespace)
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
if (xmlXPathRegisterNs(ctxp, prefix, ns_uri) != 0) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
RETURN_TRUE;
|
||||
RETURN_BOOL(xmlXPathRegisterNs(ctxp, prefix, ns_uri) == 0);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user