Skip to content

Commit ee3d5b9

Browse files
committed
ext/curl Returning a boolean value using RETURN_BOOL().
1 parent a15ba76 commit ee3d5b9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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)