Re: Disabling arginfo argument type checks for internal functions

This is only part of a thread. view whole thread
June 17, 2019 12:54 (Nikita Popov)
On Thu, Jun 6, 2019 at 2:41 PM Nikita Popov> wrote:

> Hi internals, > > I plan to disable the checking of arginfo argument types for internal > functions in (PHP 8 only). This > is necessary to avoid duplicate type checks in both arginfo and zpp. Once > this lands, PRs to add arginfo types (available through reflection) to > internal functions will be accepted. > > As a sanity check, debug builds will make sure that the function call > either throws or passes arginfo type checks -- this will help avoid the > additional of arginfo types that are not correct enforced by the > implementation. >
These changes have now landed. This means that arginfo types (both argument and return) can now be added to internal functions. See for a small sample. PRs are welcome :) Nikita