[Mod_gzip] mod_gzip_maximum_file_size doesn not work with PHP

Knut Pfefferkorn mod_gzip@lists.over.net
Wed, 06 Nov 2002 19:44:55 +0100


Hello,

from manual:
#Furthermode a limitation at this point prevents the server from 
# producing output of unlimited size in case of some endless loop
# inside a CGI script - or even trying to compress streaming data -
# which might otherwise cause the creation of a temporary file of
# any size and even fill up the whole hard disk.

but, this does not work :-(

I had a php script, which runs into end endless loop, which was filling 
my hard disk very quickly.

just try the following:
====
<html><head><title>Unbenannt</title></head>
<body>
<?php
	for(;;){
		echo "Na hallo, das ist ein großer Text<BR>\n";
	}
?>
</body>
</html>
====

tmp file increasing stopped at 2GB, which is the maximum file size 
allowed by filesystem.

max_execution_time in PHP is set higher then the default 30 seconds. 
(it's necessary for our application)


-- 
  knut