Re: Reduce codebase
| From: | Stig S. Bakken | Date: | Fri, 06 Dec 2002 20:54:22 +0000 |
| Subject: | Re: Reduce codebase | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92174@lists.php.net to get a copy of this message | ||
--enable-maintainer-mode?
- Stig
On Thu, 2002-12-05 at 17:16, Marcus Börger wrote:
> In a discussion about image.c code i was reminded that we do not need
> to bother with emalloc returning NULL or array_init returning FAILURE.
> Unforuately there are hundreds of such cases in PHP. When removing
> all these parts with all the necessary checks and error messages we
> could reduce the code base....
>
> Indeed there is a simple way of doing so for array_init: change those
> functions to be of return type void.....
>
> To make everybodys life easier i suggest we create a new configure
> option --enable-developer or such which simply creates a define
> that allows such changes. I would the like to have --enable-developer
> being a shortcut for --enable-debug also (zts would break some builds
> otherwise that also). When all developers would use this option i
> guess such changes could be done easily and they would not harm
> the normal users.
>
> marcus
>