Infinite loops with PHP4 (part 2)

From: Date: Mon, 30 Oct 2000 10:58:53 +0000
Subject: Infinite loops with PHP4 (part 2)
Groups: php.general 
Request: Send a blank email to php-general+get-22665@lists.php.net to get a copy of this message
Hello Some time ago I asked a question about infinite loops and got many answers, thanks to all persons. Now I have a similar problem (PHP 4.0.0) It happens quite often, that memory is allocated implicitely inside such an infinite loop. The loop is then executed many times and so PHP runs out of memory, before the max. execution time has been reached. The problem is now, that the memory isn't freed anymore and even other scripts than the faulty one refuse to work afterwards and print a warning message about no memory available. Does anyone know how to solve this problem (reducing max. execution time or raising the memory_limit is no usable solution)? Is this behaviour intended or erroneous? Thanks a lot for all comments. Sam Jordan

« previous php.general (#22665) next »