Re: Generating arginfo from stub files
| From: | Rowan Collins | Date: | Tue, 18 Jun 2019 17:38:24 +0000 |
| Subject: | Re: Generating arginfo from stub files | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105973@lists.php.net to get a copy of this message | ||
Hi Nikita,
On Tue, 18 Jun 2019 at 16:10, Nikita Popov <nikita.ppv@gmail.com> wrote:
> I've created a proof of concept implementation for this at
> https://github.com/php/php-src/pull/4284. Function signatures
> are
> specified
> in a xyz.stub.php file from which xyz_arginfo.h is generated. This file can
> then be included in the implementation. Nothing about the arginfo
> implementation itself changes.
>
I notice on the PR there was discussion of stubs elsewhere (e.g.
https://github.com/JetBrains/phpstorm-stubs)
still being necessary because
they contain additional documentation. However, has the opposite been
considered: process an existing set of stubs to remove unsupported or
irrelevant annotations, and import into php-src with this tool? That way,
the manual effort for existing functions would be virtually zero.
Regards,
--
Rowan Collins
[IMSoP]