diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-12 16:27:24 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-12 16:28:57 +0200 |
| commit | f6bd5dcbe9d4e707bc61df154058e13d450cc267 (patch) | |
| tree | 57f782a1e67c335b5942621983511d81887a1f71 | |
| parent | c10d3d3a35b54945456dcd6208d09c86dec32b56 (diff) | |
| download | php-git-f6bd5dcbe9d4e707bc61df154058e13d450cc267.tar.gz | |
Fix test case
`MSG_EOR` and `MSG_EOF` are not necessarily defined, in which case the
test would fail.
| -rw-r--r-- | ext/sockets/tests/socket_send.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/tests/socket_send.phpt b/ext/sockets/tests/socket_send.phpt index dd6be6898b..71ba5b028f 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"); } |
