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:
@@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user