Re: PHP (anti) crash policy?

From: Date: Sun, 03 Oct 2004 15:58:46 +0000
Subject: Re: PHP (anti) crash policy?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.general 
Request: Send a blank email to php-general+get-198544@lists.php.net to get a copy of this message
Hello, On 10/03/2004 12:27 PM, Olaf Van Der Spek wrote:
I think that making all failed memory allocations recoverable is not viable because more PHP C code that makes memory allocations assumes it only returns if it succeeds. Trying to change that everywhere memory is allocated is and monster job that I doubt that any PHP core developer will agree on doing.
You could just create a new function for that: alloc_no_exception There's no need to change every call, you'd only need to change the calls that can take a NULL result.
I find it hard to justify such function, but nothing stops you to propose a patch to PHP developers and see if they find acceptable. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html

« previous php.general (#198544) next »