Re: 64bit PHP on solaris

From: Date: Sat, 15 Mar 2003 17:42:43 +0000
Subject: Re: 64bit PHP on solaris
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-58@lists.php.net to get a copy of this message
Because this function can return either FILE* or file descriptors or (potentially) any other kind of "handle". --Wez. PS: please use internals@lists.php.net instead of php-dev@lists.php.net 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:

« previous php.internals (#58) next »