|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12377 Socket error
Submitted: 2001-07-25 15:27 UTC Modified: 2001-07-27 21:41 UTC
From: kingj at superior dot k12 dot wi dot us Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.6 OS: Linux 2.2.14
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: kingj at superior dot k12 dot wi dot us
New email:
PHP Version: OS:


 [2001-07-25 15:27 UTC] kingj at superior dot k12 dot wi dot us
While working with sockets, when returning a port from a function, you need to do intvalue($myvariable) for bind() to accept the port.  It doesn't error out, but just doesn't open the port.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-26 02:27 UTC]
can you include a sample script for me to test...
 [2001-07-26 08:06 UTC]
This may be true for the current release (4.0.6) as I've heard of this problem before.

Anyway, the current CVS version (and so the next release, 4.0.7) features a complete rewrite of the socket interface and the bug has been fixed there.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 20:05:44 2022 UTC