Re: [PHP4BETA] fopen-wrapper and sockets

From: Date: Fri, 09 Apr 1999 06:48:42 +0000
Subject: Re: [PHP4BETA] fopen-wrapper and sockets
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-33@lists.php.net to get a copy of this message
I think the problem was that fdopen() did not work or was not available on Windows. However, what we could do was to implement our own file structure and functions like fopen, fgets, fwrite etc. This file structure should contain at least the file descriptor or pointer, a hash with response headers for HTTP files and perhaps the file name. This is right up my street these days since I've been working on the socket io buffering (got a patch for fopen-wrappers.c lying around too). - Stig On Fri, 9 Apr 1999, Zeev Suraski wrote: > One thing I never really looked into, and I happened to look into a tad bit > while developing Zend, is the way we handle sockets in the fopen wrapper. > > Is there any reason at all, other than historical reasons, that sockets > aren't handled in a 100% transparent way within the fopen wrapper? For > some reason, we have the same variable games around php3_fopen_wrapper to > fdopen() the socket, etc. If there's no reason for this, this code should > move into the wrapper itself... > > Zeev > -- > Zeev Suraski <zeev@zend.com> http://www.zend.com/ > For a PGP public key, finger bourbon@netvision.net.il > > > -- > PHP 4 Beta > > > -- PHP 4 Beta

« previous php.version4 (#33) next »