MFH ?
On 11.07.2007 00:13, Sascha Schumann wrote:
sas Tue Jul 10 20:13:29 2007 UTC
Modified files:
/php-src/main/streams plain_wrapper.c
Log:
- fix concurrent reader/writer use case
(we read, while the other process writes -> if we don't try
read we won't notice that the file has been growing.)
http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.88&r2=1.89&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.88
php-src/main/streams/plain_wrapper.c:1.89
--- php-src/main/streams/plain_wrapper.c:1.88 Mon May 28 23:00:24 2007
+++ php-src/main/streams/plain_wrapper.c Tue Jul 10 20:13:29 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.88 2007/05/28 23:00:24 iliaa Exp $ */
+/* $Id: plain_wrapper.c,v 1.89 2007/07/10 20:13:29 sas Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -333,9 +333,6 @@
assert(data != NULL);
if (data->fd >= 0) {
- if (stream->eof && !data->is_pipe) {
- return 0;
- }
ret = read(data->fd, buf, count);
if (ret == (size_t)-1 && errno == EINTR) {
--
Wbr,
Antony Dovgal
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php