Re: [PHP-DEV] [VOTE] Userspace operator overloading

This is only part of a thread. view whole thread
March 25, 2020 12:25 (Alexander Lisachenko)
Hi, internals!

I want to mention, that all existing internal API of Zend could be
accessible via FFI as of PHP7.4. This gives opportunity to implement
userspace operator overloading as a simple PHP package.

I know, that FFI requires some polishing, but it could become a tool to
create interesting extensions via Z-Engine or similar libraries. Just for
example, I have a repository which provides an example of
userspace operator-overloading for matrices (see __doOperation method
implementation at

Please share you thoughts about this.

Best regards,

пн, 23 мар. 2020 г. в 20:58,>:

> Hi internals, > > I have opened voting on >, which allows > users > to overload operators in their own classes. > > Voting closes on 2020-04-06. > > Regards, > Jan Böhmer > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: > >