Just ran across https://github.com/php/pecl-php-operator and despite Derick’s comment “Operator: Allows for operator overloading, but also demands that you hand over your first-born” I thought I’d give it a go. Compiled and loaded it into PHP 7.2 and… nothing. PHP 7.0 and… nothing. Verified that it was loading and patching all of the opcodes but its handler was never being called. A few hours of grepping through the PHP sources I noticed that xdebug also patches some of the same opcodes as operator. On a lark, disabled xdebug and operator starts working just fine.
I guess Derick meant xdebug is my first-born. I’m not willing to give it up.
Cheers
Received on Tue Jun 19 2018 - 22:26:17 BST
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST