Skip to content

Commit 1092152

Browse files
devnexencmb69
authored andcommitted
Add CURLOPT_MAXFILESIZE_LARGE option
Like other *LARGE options, it takes a 64 bit value. Closes GH-8557.
1 parent 9b19d90 commit 1092152

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ PHP NEWS
1313

1414
- Curl:
1515
. Added support for CURLOPT_XFERINFOFUNCTION. (David Carlier)
16+
. Added support for CURLOPT_MAXFILESIZE_LARGE. (David Carlier)
1617

1718
- Date:
1819
. Fixed GH-8458 (DateInterval::createFromDateString does not throw if

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ PHP 8.2 UPGRADE NOTES
199199

200200
- Curl:
201201
. CURLOPT_XFERINFOFUNCTION
202+
. CURLOPT_MAXFILESIZE_LARGE
202203

203204
- Sockets:
204205
. SO_INCOMING_CPU

ext/curl/interface.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ PHP_MINIT_FUNCTION(curl)
664664
REGISTER_CURL_CONSTANT(CURLOPT_FTP_SSL);
665665
REGISTER_CURL_CONSTANT(CURLOPT_NETRC_FILE);
666666

667+
/* Available since 7.11.1 */
668+
REGISTER_CURL_CONSTANT(CURLOPT_MAXFILESIZE_LARGE);
669+
667670
/* Available since 7.11.2 */
668671
REGISTER_CURL_CONSTANT(CURLOPT_TCP_NODELAY);
669672

@@ -2981,6 +2984,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
29812984
/* Curl off_t options */
29822985
case CURLOPT_MAX_RECV_SPEED_LARGE:
29832986
case CURLOPT_MAX_SEND_SPEED_LARGE:
2987+
case CURLOPT_MAXFILESIZE_LARGE:
29842988
#if LIBCURL_VERSION_NUM >= 0x073b00 /* Available since 7.59.0 */
29852989
case CURLOPT_TIMEVALUE_LARGE:
29862990
#endif

0 commit comments

Comments
 (0)