com php-src: Fixed bug #74400 (phpdbg comparing socket function to int): sapi/phpdbg/phpdbg_io.c

[email protected] (Joe Watkins)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    60b68f19f0618c884b9d97da79bd0b5c06c35072
Author:    Joe Watkins <[email protected]>         Mon, 10 Apr 2017 08:05:31 +0100
Parents:   a93832f414e8f962c754c305dbb59799014b46d6
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=60b68f19f0618c884b9d97da79bd0b5c06c35072

Log:
Fixed bug #74400 (phpdbg comparing socket function to int)

Bugs:
https://bugs.php.net/74400

Changed paths:
  M  sapi/phpdbg/phpdbg_io.c


Diff:
diff --git a/sapi/phpdbg/phpdbg_io.c b/sapi/phpdbg/phpdbg_io.c
index c68deef..05d423d 100644
--- a/sapi/phpdbg/phpdbg_io.c
+++ b/sapi/phpdbg/phpdbg_io.c
@@ -349,7 +349,7 @@ PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short
 }
 
 PHPDBG_API void phpdbg_close_socket(int sock) {
-	if (socket >= 0) {
+	if (sock >= 0) {
 #ifdef _WIN32
 		closesocket(sock);
 #else
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.