Re: [PHP-DEV] Tracking Object Property Changes

2021-03-09 Thread Joseph Montanez
Michael, Thanks for the feedback! The part about having Zend Object at the end of a struct saved me because I was starting to have issues with cloning objects. This is for an extension I was working on and have picked back up, I was just isolating it to make it easy to work with. Its bindings for

Re: [PHP-DEV] [VOTE] Fibers

2021-03-09 Thread twosee
> 2021年3月10日 上午2:58,Aaron Piotrowski 写道: > > >> On Mar 8, 2021, at 1:40 PM, Aaron Piotrowski wrote: >> >> Greetings everyone! >> >> The vote has started on the fiber RFC: https://wiki.php.net/rfc/fibers >> >> >> Voting will run through March 22nd. >> >> Ch

Re: [PHP-DEV] Add support for ::class to constant()

2021-03-09 Thread Kamil Tekiela
Hi Kévin, My opinion is that you should write an RFC. I have to admit I was a little confused when I initially read your email, because I never considered ::class to be a constant. It is a special constant, which is described as a keyword in the manual. If I understand it correctly the value is ob

[PHP-DEV] Add support for ::class to constant()

2021-03-09 Thread Kévin Dunglas
Hi folks, Currently, it's not possible to use the ::class special constant with the constant() function. This doesn't work: var_dump( constant('\DateTime::class') ); For instance, Twig's constant() helper internally uses this PHP function, consequently the following Twig template doesn't work:

Re: [PHP-DEV] [VOTE] Fibers

2021-03-09 Thread Aaron Piotrowski
> On Mar 8, 2021, at 1:40 PM, Aaron Piotrowski wrote: > > Greetings everyone! > > The vote has started on the fiber RFC: https://wiki.php.net/rfc/fibers > > > Voting will run through March 22nd. > > Cheers, > Aaron Piotrowski Hi all! A concern was raised

Re: [PHP-DEV] Tracking Object Property Changes

2021-03-09 Thread Michael Wallner
Hi Joseph! Is this for educational purposes or real world usage? I ask, because, if you don't have to adhere to a predefined C-API you would avoid lots of headache by baking all this stuff into your PHP objects with the APIs provided by Zend. But then again, it would be way more efficient to just