Skip to content

Commit 50abef9

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix GH-20603 issue on windows 32 bits.
2 parents 314daba + f90d1f7 commit 50abef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ftp/php_ftp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ PHP_FUNCTION(ftp_connect)
147147
RETURN_THROWS();
148148
}
149149

150-
const zend_long timeoutmax = (zend_long)((double) PHP_TIMEOUT_ULL_MAX / 1000000.0);
150+
const uint64_t timeoutmax = (uint64_t)((double) PHP_TIMEOUT_ULL_MAX / 1000000.0);
151151

152152
if (timeout_sec <= 0) {
153153
zend_argument_value_error(3, "must be greater than 0");
154154
RETURN_THROWS();
155155
}
156156

157157
if (timeout_sec >= timeoutmax) {
158-
zend_argument_value_error(3, "must be less than " ZEND_LONG_FMT, timeoutmax);
158+
zend_argument_value_error(3, "must be less than " ZEND_ULONG_FMT, timeoutmax);
159159
RETURN_THROWS();
160160
}
161161

0 commit comments

Comments
 (0)