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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 12 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 09:01:32 2024 UTC