|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23567 pfsockopen() returning bad connection
Submitted: 2003-05-09 13:08 UTC Modified: 2003-05-12 19:13 UTC
From: dietrich dot ayala at foundstone dot com Assigned: wez (profile)
Status: Closed Package: Sockets related
PHP Version: 4.3.x OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dietrich dot ayala at foundstone dot com
New email:
PHP Version: OS:


 [2003-05-09 13:08 UTC] dietrich dot ayala at foundstone dot com
if i connect to a remote system using pfsockopen, and the remote system closes the connection (say it's a web server, and returns 500), subsequent calls to pfsockopen (to same remotes system) return a stream resource, but attempting to use the resource results in "invalid stream" errors.

seems like it's returning the original connection, even though it's not alive, instead of creating a new one.

this is in a single script (so a single process), and is repeatable.

i reproduced in isapi and cgi under IIS/W2K.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-12 19:13 UTC]
Fixed in CVS.
Please wait for next snapshot (and static openssl version of php4ts.dll) to be built.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 00:04:09 2023 UTC