[PHP-DEV] Re: [PHP3] fopen using append not atomic. From: Brian Moon (brianlmoon <email protected>)
Date: 03/05/99

>Ah, right. atomicity is only guaranteed for unbuffered file operations.
>I completely forgot about that. We will have to have a look at the best
>way to provide unbuffered io ops in PHP.
>
>-Rasmus

Richard and I played with this some. Basically a call like (C code):

  setvbuf( fp, NULL, _IONBF, 0 );

needs to be made on the file pointer immediately after the file is opened.
Now I do not know whether this should be wrapped up somehow, or simply
expose setvbuf through PHP. What is the preferred way of doing this?

Brian.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>