diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-04 22:16:50 -0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-02-06 16:59:00 +0100 |
commit | 2d48d734a20192a10792669baaa88dbe86f2b3a6 (patch) | |
tree | 7fc432c83d72e936dfa645611049d9d95a77d47f /ext/sockets | |
parent | 91b09c7aa6b88b276a02ee0f00277917efc54570 (diff) | |
download | php-git-2d48d734a20192a10792669baaa88dbe86f2b3a6.tar.gz |
Fix some misspellings
Diffstat (limited to 'ext/sockets')
-rw-r--r-- | ext/sockets/tests/socket_send.phpt | 12 | ||||
-rw-r--r-- | ext/sockets/tests/socket_send_win32.phpt | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ext/sockets/tests/socket_send.phpt b/ext/sockets/tests/socket_send.phpt index 4093ad47cf..969a79eb2a 100644 --- a/ext/sockets/tests/socket_send.phpt +++ b/ext/sockets/tests/socket_send.phpt @@ -17,24 +17,24 @@ if(substr(PHP_OS, 0, 3) == 'WIN' ) { $port = 80; $host = "yahoo.com"; $stringSocket = "send_socket_to_connected_socket"; -$stringSocketLenght = strlen($stringSocket); +$stringSocketLength = strlen($stringSocket); $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $socketConn = socket_connect($socket, $host, $port); -if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_OOB)===$stringSocketLenght){ +if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_OOB)===$stringSocketLength){ print("okey\n"); } -if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_EOR)===$stringSocketLenght){ +if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOR)===$stringSocketLength){ print("okey\n"); } -if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_EOF)===$stringSocketLenght){ +if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_EOF)===$stringSocketLength){ print("okey\n"); } -if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_DONTROUTE)===$stringSocketLenght){ +if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_DONTROUTE)===$stringSocketLength){ print("okey\n"); } ?> @@ -43,7 +43,7 @@ socket_close($socket); unset($port); unset($host); unset($stringSocket); -unset($stringSocketLenght); +unset($stringSocketLength); unset($socket); unset($socketConn); ?> diff --git a/ext/sockets/tests/socket_send_win32.phpt b/ext/sockets/tests/socket_send_win32.phpt index 04a985c781..0f2311b984 100644 --- a/ext/sockets/tests/socket_send_win32.phpt +++ b/ext/sockets/tests/socket_send_win32.phpt @@ -16,16 +16,16 @@ if(substr(PHP_OS, 0, 3) != 'WIN' ) { $port = 80; $host = "yahoo.com"; $stringSocket = "send_socket_to_connected_socket"; -$stringSocketLenght = strlen($stringSocket); +$stringSocketLength = strlen($stringSocket); $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $socketConn = socket_connect($socket, $host, $port); -if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_OOB)===$stringSocketLenght){ +if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_OOB)===$stringSocketLength){ print("okey\n"); } -if(socket_send($socket, $stringSocket, $stringSocketLenght, MSG_DONTROUTE)===$stringSocketLenght){ +if(socket_send($socket, $stringSocket, $stringSocketLength, MSG_DONTROUTE)===$stringSocketLength){ print("okey\n"); } ?> @@ -34,7 +34,7 @@ socket_close($socket); unset($port); unset($host); unset($stringSocket); -unset($stringSocketLenght); +unset($stringSocketLength); unset($socket); unset($socketConn); ?> |