Re: outcommented fdopen code

From: Date: Sat, 12 Jun 1999 16:52:59 +0000
Subject: Re: outcommented fdopen code
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-6848@lists.php.net to get a copy of this message
On Sat, 12 Jun 1999, Sascha Schumann wrote: > In fsock.c and fopen-wrappers.c is some outcommented code which > hints that someone wanted to use FILE * all over the place > instead of the mess with the SOCK_* macros. Could anyone > elaborate on why the fdopen() approach was not used? Because it doesn't work very well, especially under Windows. You have much less control over what's going on when you have to use the FILE * functions, instead of the socket specific system calls. I'm wondering what to do about it myself, since I want to support include_path and URLs in the C++ version as well (currently it doesn't work, since I need to create an istream * pointer, and there's no way to convert a FILE * to an istream *). Zeev

« previous php.dev (#6848) next »