Skip to content

Commit 52f0610

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix test case
2 parents 642f806 + f6bd5dc commit 52f0610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/sockets/tests/socket_send.phpt

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

26-
if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){
26+
if(!defined('MSG_EOR') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){
2727
print("okey\n");
2828
}
2929

30-
if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){
30+
if(!defined('MSG_EOF') || socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){
3131
print("okey\n");
3232
}
3333

0 commit comments

Comments
 (0)