php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68784 incorrect expression
Submitted: 2015-01-10 01:37 UTC Modified: -
From: bugreports at internot dot info Assigned:
Status: Closed Package: *General Issues
PHP Version: master-Git-2015-01-10 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [2015-01-10 01:37 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /sapi/cli/php_cli_server.c:

2283                if (server_sock >= -1) {
2284                        closesocket(server_sock);

It should be > -1, not >=.
closesocket() cannot be used with -1.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-10 02:17 UTC] rasmus@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e4b3d623a240d882ee6d650fe58f0e74ab1218d6
Log: Fix bug #68784
 [2015-01-10 02:17 UTC] rasmus@php.net
-Status: Open +Status: Closed
 [2015-01-10 02:17 UTC] rasmus@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5065505c935913e124d647df6f80f5efddae39a9
Log: Fix bug #68784
 [2015-01-10 02:17 UTC] rasmus@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dbd02ad23bfbe0b0dc703c68774e397fc0a8b1ef
Log: Fix bug #68784
 [2015-01-12 12:01 UTC] ab@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e4b3d623a240d882ee6d650fe58f0e74ab1218d6
Log: Fix bug #68784
 [2015-01-12 12:01 UTC] ab@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5065505c935913e124d647df6f80f5efddae39a9
Log: Fix bug #68784
 [2015-01-12 12:01 UTC] ab@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e4b3d623a240d882ee6d650fe58f0e74ab1218d6
Log: Fix bug #68784
 [2016-07-20 11:40 UTC] davey@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dbd02ad23bfbe0b0dc703c68774e397fc0a8b1ef
Log: Fix bug #68784
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC