com php-src: Fix test case: ext/sockets/tests/socket_send.p hpt

From: Date: Sat, 12 Oct 2019 14:28:57 +0000
Subject: com php-src: Fix test case: ext/sockets/tests/socket_send.p hpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108899@lists.php.net to get a copy of this message
Commit: f6bd5dcbe9d4e707bc61df154058e13d450cc267 Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 12 Oct 2019 16:27:24 +0200 Parents: c10d3d3a35b54945456dcd6208d09c86dec32b56 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f6bd5dcbe9d4e707bc61df154058e13d450cc267 Log: Fix test case MSG_EOR and MSG_EOF are not necessarily defined, in which case the test would fail. Changed paths: M ext/sockets/tests/socket_send.phpt Diff: diff --git a/ext/sockets/tests/socket_send.phpt b/ext/sockets/tests/socket_send.phpt index dd6be6898b8..71ba5b028f8 100644 --- a/ext/sockets/tests/socket_send.phpt +++ b/ext/sockets/tests/socket_send.phpt @@ -23,11 +23,11 @@ if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_OOB)===$stringSo print("okey\n"); } -if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){ +if(!defined('MSG_EOR') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){ print("okey\n"); } -if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){ +if(!defined('MSG_EOF') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){ print("okey\n"); }

« previous php.cvs (#108899) next »