Re: [PATCH] Zend/zend_alloc.c

From: Date: Tue, 28 Aug 2001 16:17:12 +0000
Subject: Re: [PATCH] Zend/zend_alloc.c
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64533@lists.php.net to get a copy of this message
JG>> I disagree with this patch. The scenario of not being able to
JG>> allocate memory is a fatal error, and the only appropriate
JG>> response for php is to exit. If you need other behavior use
JG>> pemalloc( which calls malloc if set persistant ).

Actually, there's a lot of code in PHP that is based on the assumption
that emalloc never fails. If emalloc can return NULLs, all this code
should be rewritten. I do not see any point in it and agree with Jason.

-- 
Stanislav Malyshev, Zend Products Engineer
stas@zend.com  http://www.zend.com/ +972-3-6139665 ext.115





Thread (18 messages)

« previous php.dev (#64533) next »