mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 10:02:14 +02:00
FIX int type (#1895)
* FIX int type * Update SMTP.php * damn it! :) * Update SMTP.php
This commit is contained in:
parent
4fd3c57b2d
commit
b468ff8b4a
@ -372,7 +372,7 @@ class SMTP
|
||||
// SMTP server can take longer to respond, give longer timeout for first read
|
||||
// Windows does not have support for this timeout function
|
||||
if (strpos(PHP_OS, 'WIN') !== 0) {
|
||||
$max = ini_get('max_execution_time');
|
||||
$max = (int) ini_get('max_execution_time');
|
||||
// Don't bother if unlimited
|
||||
if (0 !== $max && $timeout > $max) {
|
||||
@set_time_limit($timeout);
|
||||
|
Loading…
Reference in New Issue
Block a user