1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/xls: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL (#21278)

This commit is contained in:
Arshid
2026-02-23 20:31:51 +05:30
committed by GitHub
parent 93bbb464b9
commit 6b92940363

View File

@@ -703,11 +703,7 @@ PHP_METHOD(XSLTProcessor, removeParameter)
RETURN_THROWS();
}
intern = Z_XSL_P(id);
if (zend_hash_del(intern->parameter, key) == SUCCESS) {
RETVAL_TRUE;
} else {
RETVAL_FALSE;
}
RETVAL_BOOL(zend_hash_del(intern->parameter, key) == SUCCESS);
zend_string_release_ex(key, false);
}
/* }}} end XSLTProcessor::removeParameter */