|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-18 04:56 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
I'm using 4.1.2 as an Apache module, with the latest 1.x apache on FreeBSD 4.5. I open a remote server with fsockopen('remote.host', 80)), then fwrite() to it , which works fine. A problem I noticed is when the remote server (apache) closes the connection (for instance, if I send Connection: close in the HTTP header). If I then fwrite() to the socket, fwrite reports the number of bytes written. However, nothing comes out the other end, of course. Shouldn't fwrite be returning -1 ? Also, I run is_resource() on the socket, which also returns true. Is this expected behavior, or a bug? Thanks, Hans