|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17022 enhance socket_strerror(errno) to make errno optional
Submitted: 2002-05-05 17:23 UTC Modified: 2002-05-11 18:50 UTC
From: trobinson at gksystems dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.2.0 OS: any
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: trobinson at gksystems dot com
New email:
PHP Version: OS:


 [2002-05-05 17:23 UTC] trobinson at gksystems dot com
socket_last_error(socket) was recently enhanced to make the socket optional.

How about doing the same for the error number argument to socket_strerror() ?

So instead of writing:
  die (socket_strerror(socket_last_error())
I can just write:
  die (socket_strerror())

...Tom Robinson


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-11 18:50 UTC]
As discussed, this won't happen.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 03:01:27 2024 UTC