cvs: ZendEngine2(PHP_5_3) / zend_stream.c

[email protected] ("Nuno Lopes")
Newsgroups php.zend-engine.cvs
Message-ID <cvsnlopess1207323279@cvsserver>
nlopess		Fri Apr  4 15:34:39 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_stream.c 
  Log:
  remove redundant test for file size
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_stream.c?r1=1.13.2.1.2.1.2.3&r2=1.13.2.1.2.1.2.4&diff_format=u
Index: ZendEngine2/zend_stream.c
diff -u ZendEngine2/zend_stream.c:1.13.2.1.2.1.2.3 ZendEngine2/zend_stream.c:1.13.2.1.2.1.2.4
--- ZendEngine2/zend_stream.c:1.13.2.1.2.1.2.3	Fri Mar 21 18:15:43 2008
+++ ZendEngine2/zend_stream.c	Fri Apr  4 15:34:39 2008
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_stream.c,v 1.13.2.1.2.1.2.3 2008/03/21 18:15:43 helly Exp $ */
+/* $Id: zend_stream.c,v 1.13.2.1.2.1.2.4 2008/04/04 15:34:39 nlopess Exp $ */
 
 
 #include "zend.h"
@@ -202,7 +202,7 @@
 
 	if (old_type == ZEND_HANDLE_FP && !file_handle->handle.stream.isatty && size) {
 #if HAVE_MMAP
-		if (file_handle->handle.fp && size) {
+		if (file_handle->handle.fp) {
 			/*  *buf[size] is zeroed automatically by the kernel */
 			*buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0);
 			if (*buf != MAP_FAILED) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.