Hi Nikita, On Tue, 18 Jun 2019 at 16:10, Nikita Popov <nikita....@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]