[PHP-CVS] cvs: php-src /main/streams mmap.c

2008-03-21 Thread Marcus Boerger
helly   Fri Mar 21 17:12:38 2008 UTC

  Modified files:  
/php-src/main/streams   mmap.c 
  Log:
  - Increase max mmap size to 8 MB
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/mmap.c?r1=1.11r2=1.12diff_format=u
Index: php-src/main/streams/mmap.c
diff -u php-src/main/streams/mmap.c:1.11 php-src/main/streams/mmap.c:1.12
--- php-src/main/streams/mmap.c:1.11Mon Dec 31 07:12:18 2007
+++ php-src/main/streams/mmap.c Fri Mar 21 17:12:38 2008
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: mmap.c,v 1.11 2007/12/31 07:12:18 sebastian Exp $ */
+/* $Id: mmap.c,v 1.12 2008/03/21 17:12:38 helly Exp $ */
 
 /* Memory Mapping interface for streams */
 #include php.h
@@ -33,7 +33,7 @@
 
/* For now, we impose an arbitrary 2MB limit to avoid
 * runaway swapping when large files are passed thru. */
-   if (length  2 * 1024 * 1024) {
+   if (length  8 * 1024 * 1024) {
return NULL;
}




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



[PHP-CVS] cvs: php-src /main/streams mmap.c

2008-03-21 Thread Marcus Boerger
helly   Fri Mar 21 18:20:52 2008 UTC

  Modified files:  
/php-src/main/streams   mmap.c 
  Log:
  - Fix comment
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/mmap.c?r1=1.12r2=1.13diff_format=u
Index: php-src/main/streams/mmap.c
diff -u php-src/main/streams/mmap.c:1.12 php-src/main/streams/mmap.c:1.13
--- php-src/main/streams/mmap.c:1.12Fri Mar 21 17:12:38 2008
+++ php-src/main/streams/mmap.c Fri Mar 21 18:20:51 2008
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: mmap.c,v 1.12 2008/03/21 17:12:38 helly Exp $ */
+/* $Id: mmap.c,v 1.13 2008/03/21 18:20:51 helly Exp $ */
 
 /* Memory Mapping interface for streams */
 #include php.h
@@ -31,7 +31,7 @@
range.mode = mode;
range.mapped = NULL;
 
-   /* For now, we impose an arbitrary 2MB limit to avoid
+   /* For now, we impose an arbitrary limit to avoid
 * runaway swapping when large files are passed thru. */
if (length  8 * 1024 * 1024) {
return NULL;



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



[PHP-CVS] cvs: php-src /main/streams mmap.c

2008-03-21 Thread Marcus Boerger
helly   Fri Mar 21 19:37:32 2008 UTC

  Modified files:  
/php-src/main/streams   mmap.c 
  Log:
  - Settle to 4 MB, see internals@ archives
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/mmap.c?r1=1.13r2=1.14diff_format=u
Index: php-src/main/streams/mmap.c
diff -u php-src/main/streams/mmap.c:1.13 php-src/main/streams/mmap.c:1.14
--- php-src/main/streams/mmap.c:1.13Fri Mar 21 18:20:51 2008
+++ php-src/main/streams/mmap.c Fri Mar 21 19:37:32 2008
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: mmap.c,v 1.13 2008/03/21 18:20:51 helly Exp $ */
+/* $Id: mmap.c,v 1.14 2008/03/21 19:37:32 helly Exp $ */
 
 /* Memory Mapping interface for streams */
 #include php.h
@@ -33,7 +33,7 @@
 
/* For now, we impose an arbitrary limit to avoid
 * runaway swapping when large files are passed thru. */
-   if (length  8 * 1024 * 1024) {
+   if (length  4 * 1024 * 1024) {
return NULL;
}




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



[PHP-CVS] cvs: php-src /main/streams mmap.c

2005-02-23 Thread Ilia Alshanetsky
iliaa   Wed Feb 23 17:41:05 2005 EDT

  Modified files:  
/php-src/main/streams   mmap.c 
  Log:
  Increase maximum mmapable file size to 2mb from 1mb.
  
  
http://cvs.php.net/diff.php/php-src/main/streams/mmap.c?r1=1.5r2=1.6ty=u
Index: php-src/main/streams/mmap.c
diff -u php-src/main/streams/mmap.c:1.5 php-src/main/streams/mmap.c:1.6
--- php-src/main/streams/mmap.c:1.5 Wed Apr 21 08:02:47 2004
+++ php-src/main/streams/mmap.c Wed Feb 23 17:41:05 2005
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: mmap.c,v 1.5 2004/04/21 12:02:47 wez Exp $ */
+/* $Id: mmap.c,v 1.6 2005/02/23 22:41:05 iliaa Exp $ */
 
 /* Memory Mapping interface for streams */
 #include php.h
@@ -33,7 +33,7 @@
 
/* For now, we impose an arbitrary 1MB limit to avoid
 * runaway swapping when large files are passed thru. */
-   if (length  1 * 1024 * 1024) {
+   if (length  2 * 1024 * 1024) {
return NULL;
}


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



[PHP-CVS] cvs: php-src /main/streams mmap.c

2005-02-23 Thread Andi Gutmans
andiWed Feb 23 22:04:57 2005 EDT

  Modified files:  
/php-src/main/streams   mmap.c 
  Log:
  - Fix comment
  
  
http://cvs.php.net/diff.php/php-src/main/streams/mmap.c?r1=1.6r2=1.7ty=u
Index: php-src/main/streams/mmap.c
diff -u php-src/main/streams/mmap.c:1.6 php-src/main/streams/mmap.c:1.7
--- php-src/main/streams/mmap.c:1.6 Wed Feb 23 17:41:05 2005
+++ php-src/main/streams/mmap.c Wed Feb 23 22:04:57 2005
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: mmap.c,v 1.6 2005/02/23 22:41:05 iliaa Exp $ */
+/* $Id: mmap.c,v 1.7 2005/02/24 03:04:57 andi Exp $ */
 
 /* Memory Mapping interface for streams */
 #include php.h
@@ -31,7 +31,7 @@
range.mode = mode;
range.mapped = NULL;
 
-   /* For now, we impose an arbitrary 1MB limit to avoid
+   /* For now, we impose an arbitrary 2MB limit to avoid
 * runaway swapping when large files are passed thru. */
if (length  2 * 1024 * 1024) {
return NULL;

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




[PHP-CVS] cvs: php-src /main/streams mmap.c

2003-07-14 Thread Wez Furlong
wez Mon Jul 14 15:38:13 2003 EDT

  Modified files:  
/php-src/main/streams   mmap.c 
  Log:
  Fix for mips compiler.
  
  
Index: php-src/main/streams/mmap.c
diff -u php-src/main/streams/mmap.c:1.2 php-src/main/streams/mmap.c:1.3
--- php-src/main/streams/mmap.c:1.2 Tue Jun 10 16:03:42 2003
+++ php-src/main/streams/mmap.c Mon Jul 14 15:38:13 2003
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: mmap.c,v 1.2 2003/06/10 20:03:42 imajes Exp $ */
+/* $Id: mmap.c,v 1.3 2003/07/14 19:38:13 wez Exp $ */
 
 /* Memory Mapping interface for streams */
 #include php.h
@@ -24,7 +24,12 @@
 
 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, 
php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC)
 {
-   php_stream_mmap_range range = { offset, length, mode, NULL };
+   php_stream_mmap_range range;
+   
+   range.offset = offset;
+   range.length = length;
+   range.mode = mode;
+   range.mapped = NULL;
 
/* TODO: Enforce system policy and limits for mmap sizes ? */




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