Because this function can return either FILE* or file descriptors or (potentially) any other kind of "handle".
--Wez. PS: please use [EMAIL PROTECTED] instead of [EMAIL PROTECTED] On Sat, 15 Mar 2003, Chris Field wrote: > For my own education, is there a reason they were passed as void* to > begin with? > > Index: main/streams.c > > =================================================================== > > RCS file: /repository/php4/main/Attic/streams.c,v > > retrieving revision 1.125.2.37 > > diff -u -u -r1.125.2.37 streams.c > > -- main/streams.c 6 Mar 2003 20:58:19 -0000 1.125.2.37 > > +++ main/streams.c 8 Mar 2003 10:48:16 -0000 > > @@ -1532,7 +1532,7 @@ > > } > > if (ret) { > > fflush(data->file); > > - *ret = (void*)fd; > > + *(int*)ret = fd; > > } > > return SUCCESS; > > default: -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php