Re: [PHP-DEV] Crash on *very* long script From: Andi Gutmans (andi <email protected>)
Date: 01/28/00

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 <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>