Skip to content

Commit cdae6c3

Browse files
authored
Return from curl_setopt() with RETURN_BOOL() (phpGH-21136)
1 parent 8ebdbb7 commit cdae6c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,11 +2278,7 @@ PHP_FUNCTION(curl_setopt)
22782278

22792279
ch = Z_CURL_P(zid);
22802280

2281-
if (_php_curl_setopt(ch, options, zvalue, 0) == SUCCESS) {
2282-
RETURN_TRUE;
2283-
} else {
2284-
RETURN_FALSE;
2285-
}
2281+
RETURN_BOOL(_php_curl_setopt(ch, options, zvalue, 0) == SUCCESS);
22862282
}
22872283
/* }}} */
22882284

0 commit comments

Comments
 (0)