com php-src: Make test more resilient: ext/sockets/tests/socket _import_stream-3.phpt

From: Date: Mon, 11 Nov 2019 17:08:54 +0000
Subject: com php-src: Make test more resilient: ext/sockets/tests/socket _import_stream-3.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109241@lists.php.net to get a copy of this message
Commit: 735c4cab7490ccb0ed70d50a84e6524a5244aa77 Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 11 Nov 2019 18:08:00 +0100 Parents: 8c5ca24e11dc9420192cfafb7f216db06ad3aa08 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=735c4cab7490ccb0ed70d50a84e6524a5244aa77 Log: Make test more resilient socket_bind() may raise E_WARNING on failure, which would cause the test to fail. Changed paths: M ext/sockets/tests/socket_import_stream-3.phpt Diff: diff --git a/ext/sockets/tests/socket_import_stream-3.phpt b/ext/sockets/tests/socket_import_stream-3.phpt index f83e8a487bc..61eccfc5377 100644 --- a/ext/sockets/tests/socket_import_stream-3.phpt +++ b/ext/sockets/tests/socket_import_stream-3.phpt @@ -6,7 +6,7 @@ if (!extension_loaded('sockets')) { die('SKIP sockets extension not available.'); } $s = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); -$br = socket_bind($s, '0.0.0.0', 58379); +$br = @socket_bind($s, '0.0..0.0', 58379); if ($br === false) die("SKIP IPv4/port 58379 not available"); $so = @socket_set_option($s, IPPROTO_IP, MCAST_JOIN_GROUP, array(

« previous php.cvs (#109241) next »