Re: cvs: /php3 config.h.in configure.in php.h

From: Date: Tue, 09 Nov 1999 00:44:40 +0000
Subject: Re: cvs: /php3 config.h.in configure.in php.h
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-12231@lists.php.net to get a copy of this message
On Mon, Nov 08, 1999 at 09:09:42AM -0000, Stig Bakken wrote: > -/* $Id: php.h,v 1.62 1999/07/28 16:54:53 rasmus Exp $ */ > +/* $Id: php.h,v 1.63 1999/11/08 09:09:40 ssb Exp $ */ > > #ifndef _PHP_H > #define _PHP_H > @@ -208,6 +208,10 @@ > > #ifndef HAVE_STRERROR > extern char *strerror(int); > +#endif > + > +#ifdef HAVE_MKSTEMP > +# define mktemp mkstemp > #endif That's wrong. mktemp returns a filename, mkstemp returns a file descriptor. (It opens basically does mktemp() then opens the file O_EXCL to prevent race conditions.) I suggest using mkstemp() as another function, and be done with it.

« previous php.dev (#12231) next »