php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72218 If host name cannot be resolved then PHP 7 crashes
Submitted: 2016-05-15 16:17 UTC Modified: -
From: esminis at esminis dot lt Assigned:
Status: Closed Package: Network related
PHP Version: 7.0.6 OS:
Private report: No CVE-ID:
 [2016-05-15 16:17 UTC] esminis at esminis dot lt
Description:
------------
If host name cannot be resolved then PHP 7 crashes, the reason is in 
main/network.c, missing "*" symbol, now it is:

error_string = strpprintf(0, "php_network_getaddresses: getaddrinfo failed (null result pointer) errno=%d", errno);

but it should be:

*error_string = strpprintf(0, "php_network_getaddresses: getaddrinfo failed (null result pointer) errno=%d", errno);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-16 03:22 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1559fd7e48837b8f91de15e912865baab57bcdb5
Log: Fixed bug #72218 (If host name cannot be resolved then PHP 7 crashes)
 [2016-05-16 03:22 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:31 UTC] davey@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1559fd7e48837b8f91de15e912865baab57bcdb5
Log: Fixed bug #72218 (If host name cannot be resolved then PHP 7 crashes)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Fri Apr 28 14:01:35 2017 UTC