mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Fix test case
`MSG_EOR` and `MSG_EOF` are not necessarily defined, in which case the test would fail.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user