|  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
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:
Solve the problem:
8 + 25 = ?
Subscribe to this entry?

 [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: Sun Aug 14 00:05:44 2022 UTC