Re: [PHP-DEV] Re: "TryX" idom for Enumerations

2021-01-15 Thread Rowan Tommins
On 10/01/2021 22:40, Mark Randall wrote: There is an alternative, of sorts. Something I tried investigating when I first started looking into PHP-SRC, but lack the skill and knowledge to implement myself. A shorthand try / catch of something like the form: ( ResultExpr, ...) Funnily enoug

Re: [PHP-DEV] Arg info / zpp mismatch on PHP 8.0

2021-01-15 Thread James Colannino
On 1/15/21 10:17 AM, Christoph M. Becker wrote: On 15.01.2021 at 18:40, James Colannino wrote: On 1/15/21 9:20 AM, James Colannino wrote: On 1/15/21 9:15 AM, Nikita Popov wrote: On Fri, Jan 15, 2021 at 6:11 PM James Colannino wrote: I have the following method defined in a PHP 8 extension

Re: [PHP-DEV] Arg info / zpp mismatch on PHP 8.0

2021-01-15 Thread Christoph M. Becker
On 15.01.2021 at 18:40, James Colannino wrote: > On 1/15/21 9:20 AM, James Colannino wrote: >> >> On 1/15/21 9:15 AM, Nikita Popov wrote: >>> On Fri, Jan 15, 2021 at 6:11 PM James Colannino >>> wrote: >>> I have the following method defined in a PHP 8 extension: ZEND_BEGIN_ARG_INFO

Re: [PHP-DEV] Arg info / zpp mismatch on PHP 8.0

2021-01-15 Thread James Colannino
On 1/15/21 9:20 AM, James Colannino wrote: On 1/15/21 9:15 AM, Nikita Popov wrote: On Fri, Jan 15, 2021 at 6:11 PM James Colannino wrote: I have the following method defined in a PHP 8 extension: ZEND_BEGIN_ARG_INFO(arginfoCtor, 0)   ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)  

Re: [PHP-DEV] Arg info / zpp mismatch on PHP 8.0

2021-01-15 Thread James Colannino
On 1/15/21 9:15 AM, Nikita Popov wrote: On Fri, Jan 15, 2021 at 6:11 PM James Colannino wrote: I have the following method defined in a PHP 8 extension: ZEND_BEGIN_ARG_INFO(arginfoCtor, 0) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, port, IS_LONG, 1) ZEND

Re: [PHP-DEV] Arg info / zpp mismatch on PHP 8.0

2021-01-15 Thread Nikita Popov
On Fri, Jan 15, 2021 at 6:11 PM James Colannino wrote: > I have the following method defined in a PHP 8 extension: > > ZEND_BEGIN_ARG_INFO(arginfoCtor, 0) > ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) > ZEND_ARG_TYPE_INFO(0, port, IS_LONG, 1) > ZEND_END_ARG_INFO() > > PHP_METHOD(Trogd

[PHP-DEV] Arg info / zpp mismatch on PHP 8.0

2021-01-15 Thread James Colannino
I have the following method defined in a PHP 8 extension: ZEND_BEGIN_ARG_INFO(arginfoCtor, 0)     ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)     ZEND_ARG_TYPE_INFO(0, port, IS_LONG, 1) ZEND_END_ARG_INFO() PHP_METHOD(Trogdord, __construct) {     trogdordObject *objWrapper = ZOBJ_TO_TROGDORD(Z

Re: [PHP-DEV] "TryX" idom for Enumerations

2021-01-15 Thread Larry Garfield
On Fri, Jan 15, 2021, at 9:55 AM, Pierre R. wrote: > Le 10/01/2021 à 22:27, Larry Garfield a écrit : > > This is a little tangent from the Enums RFC, but I want to flag it because > > it it's the sort of in-passing decision that could have far-reaching > > implications, so shouldn't be done impli

Re: [PHP-DEV] "TryX" idom for Enumerations

2021-01-15 Thread Pierre R.
Le 10/01/2021 à 22:27, Larry Garfield a écrit : This is a little tangent from the Enums RFC, but I want to flag it because it it's the sort of in-passing decision that could have far-reaching implications, so shouldn't be done implicitly. At the moment, the Enum RFC for scalar enums includes t