Re: hasType() for internal function parameters?
| From: | Stanislav Malyshev | Date: | Sun, 21 Jun 2015 22:09:06 +0000 |
| Subject: | Re: hasType() for internal function parameters? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86774@lists.php.net to get a copy of this message | ||
Hi!
> The difference here is that ustrlen() has an argument type specified in
> arginfo, while strlen() triggers an error through zend_parse_parameters().
> We have practically no arginfo-level type annotations in the standard
> library.
I think we should start doing this. Of course, some functions have
complicated arguments and we can leave it alone for now, but those that
have a clear type we should make arginfo reflect it.
--
Stas Malyshev
smalyshev@gmail.com