cvs: php-src /main/streams streams.c

From: Date: Mon, 23 May 2005 11:51:53 +0000
Subject: cvs: php-src /main/streams streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31972@lists.php.net to get a copy of this message
tony2001 Mon May 23 07:51:53 2005 EDT Modified files: /php-src/main/streams streams.c Log: fix bug #32810 (fread after tmpfile() reads only 8192 bytes) http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.78&r2=1.79&ty=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.78 php-src/main/streams/streams.c:1.79 --- php-src/main/streams/streams.c:1.78 Mon May 16 04:37:13 2005 +++ php-src/main/streams/streams.c Mon May 23 07:51:53 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.78 2005/05/16 08:37:13 tony2001 Exp $ */ +/* $Id: streams.c,v 1.79 2005/05/23 11:51:53 tony2001 Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -603,8 +603,9 @@ } /* just break anyway, to avoid greedy read */ - if (stream->wrapper != &php_plain_files_wrapper) + if (stream->wrapper != NULL && stream->wrapper != &php_plain_files_wrapper) { break; + } } if (didread > 0) {

« previous php.cvs (#31972) next »