cvs: ZendEngine2(PHP_5_3) / zend_stream.c

[email protected] ("Antony Dovgal")
Newsgroups php.zend-engine.cvs
Message-ID <cvstony20011209456501@cvsserver>
tony2001		Tue Apr 29 08:08:21 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_stream.c 
  Log:
  MFH
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_stream.c?r1=1.13.2.1.2.1.2.4&r2=1.13.2.1.2.1.2.5&diff_format=u
Index: ZendEngine2/zend_stream.c
diff -u ZendEngine2/zend_stream.c:1.13.2.1.2.1.2.4 ZendEngine2/zend_stream.c:1.13.2.1.2.1.2.5
--- ZendEngine2/zend_stream.c:1.13.2.1.2.1.2.4	Fri Apr  4 15:34:39 2008
+++ ZendEngine2/zend_stream.c	Tue Apr 29 08:08:21 2008
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_stream.c,v 1.13.2.1.2.1.2.4 2008/04/04 15:34:39 nlopess Exp $ */
+/* $Id: zend_stream.c,v 1.13.2.1.2.1.2.5 2008/04/29 08:08:21 tony2001 Exp $ */
 
 
 #include "zend.h"
@@ -231,11 +231,11 @@
 			}
 		}
 		file_handle->handle.stream.mmap.map = 0;
-		file_handle->handle.stream.mmap.buf = *buf;
 		file_handle->handle.stream.mmap.len = size;
 		if (size && remain < ZEND_MMAP_AHEAD) {
 			*buf = safe_erealloc(*buf, size, 1, ZEND_MMAP_AHEAD);
 		}
+		file_handle->handle.stream.mmap.buf = *buf;
 	}
 
 	if (file_handle->handle.stream.mmap.len == 0) {
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.