Re: Re: cvs: ZendEngine2 / zend_builtin_functions.c /tests 009.phpt php-src/ext/reflection/tests 027.phpt php-src/ext/standard/tests/class_object
get_class_error_001.phpt get_class_variation_001.phpt
| From: | Paul Biggar | Date: | Mon, 16 Mar 2009 18:57:56 +0000 |
| Subject: | Re: Re: cvs: ZendEngine2 / zend_builtin_functions.c /tests 009.phpt php-src/ext/reflection/tests 027.phpt php-src/ext/standard/tests/class_object get_class_error_001.phpt get_class_variation_001.phpt |
||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43375@lists.php.net to get a copy of this message | ||
On Mon, Mar 16, 2009 at 6:46 PM, Stanislav Malyshev <stas@zend.com> wrote:
> Hi!
>
>> Why do functions return NULL? (I know the technical answer, obviously,
>> I'm interested in the design decision). If FALSE is the error
>> condition, whats the point in a separate NULL error condition?
>
> Because false is not an error condition. It's a legitimate value, which can
> be normal answer for many functions.
Is this not the case for NULL?
Thanks,
Paul
--
Paul Biggar
paul.biggar@gmail.com