From: Mikael Nordfeldth Date: Mon, 10 Jul 2017 12:10:32 +0000 (+0200) Subject: Use intval on ini_get or we use a string for timeout X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31866be98bdc3dfccabd0c0f262a769c7dc68db2;p=quix0rs-gnu-social.git Use intval on ini_get or we use a string for timeout --- diff --git a/lib/default.php b/lib/default.php index e8209cbe02..f465f20bf6 100644 --- a/lib/default.php +++ b/lib/default.php @@ -393,7 +393,7 @@ $default = 'ssl_verify_host' => true, // HTTPRequest2 makes sure this is set to CURLOPT_SSL_VERIFYHOST==2 if using curl 'curl' => false, // Use CURL backend for HTTP fetches if available. (If not, PHP's socket streams will be used.) 'connect_timeout' => 5, - 'timeout' => ini_get('default_socket_timeout'), // effectively should be this by default already, but this makes it more explicitly configurable for you users .) + 'timeout' => intval(ini_get('default_socket_timeout')), // effectively should be this by default already, but this makes it more explicitly configurable for you users .) 'proxy_host' => null, 'proxy_port' => null, 'proxy_user' => null,