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

Return from curl_setopt() with RETURN_BOOL() (GH-21136)

This commit is contained in:
Arshid
2026-02-05 19:44:52 +05:30
committed by GitHub
parent 8ebdbb7630
commit cdae6c38f6

View File

@@ -2278,11 +2278,7 @@ PHP_FUNCTION(curl_setopt)
ch = Z_CURL_P(zid);
if (_php_curl_setopt(ch, options, zvalue, 0) == SUCCESS) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
RETURN_BOOL(_php_curl_setopt(ch, options, zvalue, 0) == SUCCESS);
}
/* }}} */