Skip to content

Commit 4a643cf

Browse files
committed
fix test for MacOS instead
1 parent 6a551c8 commit 4a643cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/sockets/tests/socket_send.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_OOB)===$stringSo
2323
print("okey\n");
2424
}
2525

26-
if(!defined('MSG_EOR') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){
27-
print("okey\n");
26+
if (PHP_OS !== "Darwin") { // MSG_EOR seems unsupported on MacOS
27+
if(!defined('MSG_EOR') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){
28+
print("okey\n");
29+
}
2830
}
2931

3032
if(!defined('MSG_EOF') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){

0 commit comments

Comments
 (0)