We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 314daba + f90d1f7 commit 50abef9Copy full SHA for 50abef9
ext/ftp/php_ftp.c
@@ -147,15 +147,15 @@ PHP_FUNCTION(ftp_connect)
147
RETURN_THROWS();
148
}
149
150
- const zend_long timeoutmax = (zend_long)((double) PHP_TIMEOUT_ULL_MAX / 1000000.0);
+ const uint64_t timeoutmax = (uint64_t)((double) PHP_TIMEOUT_ULL_MAX / 1000000.0);
151
152
if (timeout_sec <= 0) {
153
zend_argument_value_error(3, "must be greater than 0");
154
155
156
157
if (timeout_sec >= timeoutmax) {
158
- zend_argument_value_error(3, "must be less than " ZEND_LONG_FMT, timeoutmax);
+ zend_argument_value_error(3, "must be less than " ZEND_ULONG_FMT, timeoutmax);
159
160
161
0 commit comments