note 125456 added to function.gethostbyaddr

From: Date: Fri, 23 Oct 2020 20:42:04 +0000
Subject: note 125456 added to function.gethostbyaddr
Groups: php.notes 
Request: Send a blank email to php-notes+get-215634@lists.php.net to get a copy of this message
There is 1 bug in gethostbyaddr_timeout() function that king dot macro at gmail dot com posted in the most important line of all, setting the timeout with socket_set_timeout(). It should be: @socket_set_timeout($handle, intdiv($timeout_ms, 1000), $timeout_ms % 1000); I'd also make the $dns parameter last and optional and parse it from /etc/resolve.conf (or something else) if not given. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.174 (proxied: 88.0.205.154) ---- Manual Page -- http://php.net/manual/en/function.gethostbyaddr.php Edit -- https://master.php.net/note/edit/125456 Del: integrated -- https://master.php.net/note/delete/125456/integrated Del: useless -- https://master.php.net/note/delete/125456/useless Del: bad code -- https://master.php.net/note/delete/125456/bad+code Del: spam -- https://master.php.net/note/delete/125456/spam Del: non-english -- https://master.php.net/note/delete/125456/non-english Del: in docs -- https://master.php.net/note/delete/125456/in+docs Del: other reasons-- https://master.php.net/note/delete/125456 Reject -- https://master.php.net/note/reject/125456 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215634) next »