php3&php4RC2 Memory Problem

From: Date: Wed, 24 May 2000 21:20:05 +0000
Subject: php3&php4RC2 Memory Problem
Groups: php.general 
Request: Send a blank email to php-general+get-489@lists.php.net to get a copy of this message
I would like to secure my red hat 6.0 box by setting up php so no matter how bad written the script is, it still won't crash the box by exhasting it's memory. (with safe_mode off) (my red hat 6.0 has 38M RAM & 80M SWAP) I have set up PHP with the default memory limit (8M) However, the following test script will still able to exhast the box's memory. <? $max=100000; set_time_limit(4000); for ($n=0; $n<=$max; $n++) { $a[$n]="a$n "; $b[$n]="b$n "; $c[$n]="c$n "; $d[$n]="d$n "; $e[$n]="e$n "; $f[$n]="f$n "; $g[$n]="g$n "; $h[$n]="h$n "; echo "$a[$n] $b[$n] $c[$n] $d[$n] $e[$n] $f[$n] $g[$n] $h[$n]\n"; } ?> I would be pleased if somebody can help me out. Thanks a lot

« previous php.general (#489) next »