Le 23/04/2020 à 14:40, Remi Collet a écrit :
> Hi,
> 
> One interesting feature of PHP 8 is the automatic
> generation of arginfo from a stub file.

If you want to have a simple arginfo header for old version
you can use, in your stub

 /**
 * @generate-function-entries
 * @generate-legacy-arginfo
 */


This will generate 2 headers

- foo_arginfo.c with type hinting for PHP 8
- foo_legacy_arginfo.c for older PHP versions



Remi



P.S. available in master, will be in RC2

-- 
PECL development discussion Mailing List (https://pecl.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to