Re: Crash on *very* long script
| From: | Andi Gutmans | Date: | Fri, 28 Jan 2000 21:39:24 +0000 |
| Subject: | Re: Crash on *very* long script | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-15002@lists.php.net to get a copy of this message | ||
At 11:29 PM 1/28/00 +0200, Stanislav Malyshev wrote:
AG>> Well if your loop creates tons and tons of new variables you will run out AG>> of memory. You can compile with support for a per-script memory limit but AG>> it does slow down a bit. No, the script which creates 10000 variables goes fine, but the same script unrolled into 6M sheet of code dies. I know what can be done to circumvent this, I just think that there should be no crashes anyway.It is very hard to recover from running out of memory. We do try and take care of this in emalloc() by exiting but you can run out of memory in much odder situations. You really can't recover. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/