wez             Wed Feb 12 20:23:40 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/main  streams.c 
  Log:
  MFH: Fix for Bug #21815
  
  
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.125.2.26 php4/main/streams.c:1.125.2.27
--- php4/main/streams.c:1.125.2.26      Thu Jan 30 16:11:29 2003
+++ php4/main/streams.c Wed Feb 12 20:23:39 2003
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: streams.c,v 1.125.2.26 2003/01/30 21:11:29 sas Exp $ */
+/* $Id: streams.c,v 1.125.2.27 2003/02/13 01:23:39 wez Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -1023,6 +1023,7 @@
 #ifdef HAVE_MMAP
        if (!php_stream_is(stream, PHP_STREAM_IS_SOCKET)
                        && stream->filterhead == NULL
+                       && php_stream_tell(stream) == 0
                        && SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, 
(void*)&fd, 0))
        {
                struct stat sbuf;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to