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

ext/standard: Cleanup boolean return macros (#21261)

- Replace RETVAL_TRUE/FALSE with RETVAL_BOOL
- Replace RETURN_TRUE/FALSE with RETURN_BOOL
This commit is contained in:
Arshid
2026-02-23 18:09:25 +05:30
committed by GitHub
parent b58087daab
commit 7b4a7035d6

View File

@@ -260,11 +260,7 @@ static void php_setcookie_common(INTERNAL_FUNCTION_PARAMETERS, bool is_raw)
}
}
if (php_setcookie(name, value, expires, path, domain, secure, httponly, samesite, partitioned, !is_raw) == SUCCESS) {
RETVAL_TRUE;
} else {
RETVAL_FALSE;
}
RETVAL_BOOL(php_setcookie(name, value, expires, path, domain, secure, httponly, samesite, partitioned, !is_raw) == SUCCESS);
if (options) {
cleanup:
@@ -328,11 +324,7 @@ PHP_FUNCTION(headers_sent)
break;
}
if (SG(headers_sent)) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
RETURN_BOOL(SG(headers_sent));
}
/* }}} */