Re: [RFC] Support internal function return types
| From: | reeze | Date: | Thu, 05 Feb 2015 04:01:23 +0000 |
| Subject: | Re: [RFC] Support internal function return types | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81859@lists.php.net to get a copy of this message | ||
PS:
There is no enough unit tests to cover all of the branches, if we want then
I have to add a bunch of for testing functions and classes in ZEND_DEBUG,
what is the better way?
On 5 February 2015 at 11:54, reeze <reeze@php.net> wrote:
> Hi all,
>
> RFC: https://wiki.php.net/rfc/internal_function_return_types
>
> I noticed that return types RFC[1] didn't support internal functions, I
> just open a PR[2] to support it.
>
> There are some open issues we can discuss:
>
> 1. User land return types didn't stop the php, the current implementation
> raise error to stop PHP from start, this may help debug problem.
> 2. User land return types didn't support Nullable types, but the RFC
> return types internally support it, I think it is feature. is that
> acceptable?
>
> Thank you.
>
> ---
>
> [1] https://wiki.php.net/rfc/return_types
> [2] https://github.com/php/php-src/pull/1050
>