Req #71641 [Com]: Proper error-reporting in php_network_addresses() calls

From: Date: Mon, 22 Feb 2016 09:58:23 +0000
Subject: Req #71641 [Com]: Proper error-reporting in php_network_addresses() calls
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199384@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71641&edit=1 ID: 71641 Comment by: torotil at gmail dot com Reported by: torotil at gmail dot com Summary: Proper error-reporting in php_network_addresses() calls Status: Open Type: Feature/Change Request Package: Streams related Operating System: all PHP Version: master-Git-2016-02-22 (Git) Block user comment: N Private report: N New Comment: Here is a patch for the current PHP-5.5 branch. Previous Comments: ------------------------------------------------------------------------ [2016-02-22 09:31:34] torotil at gmail dot com Description: ------------ In php_network_addresses() getaddrinfo() is called but only it's return value is checked for errors. For EAI_SYSTEM it only reports a generic error although a more specific error message is available using strerror(errno). This makes debugging certain networking issues impossible. I'd propose to check for EAI_SYSTEM like in this stackoverflow question: http://stackoverflow.com/a/17914614/769486 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71641&edit=1

« previous php.bugs (#199384) next »