1
0
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:
Arshid
2026-02-11 00:40:50 +05:30
committed by GitHub
parent 8032d6fa16
commit defc0bec2e

View File

@@ -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);
}
/* }}} */