pecl-php-operator icon indicating copy to clipboard operation
pecl-php-operator copied to clipboard

Rewrite for PHP 8

Open jb-lopez opened this issue 11 months ago • 3 comments

The original operator extension has been broken since a change in PHP 7.4 caused it to be unable to handle the assignment ops. I rewrote the extension for PHP 8 starting in August of 2023 jb-lopez/php-operators.

This PR is a merge from my rewrite on top of the existing extension. It's been fully tested with PHP 8.4.

jb-lopez avatar Feb 18 '25 21:02 jb-lopez

I noticed there's a 0.5.0 on PECL. Is there a release or a tag that supports that release? I'd love to see exactly which code is behind that.

schodemeiss avatar Apr 12 '25 09:04 schodemeiss

The exact code is available in the tgz file on PECL.

As the lead maintainer, I want nothing more than to be able to merge this PR in GitHub. But since this extension was abandoned there was no one to hand over ownership. I just have to keep poking people until someone can grant me permissions in GitHub for this repo.

jb-lopez avatar Apr 13 '25 00:04 jb-lopez

I guess the alternative is to create a fork? I know that means potentially making a new PECL package, etc. But that doesn't seem like the end of the world.

Also, I was wondering how folks get around the problem of IDEs complaining about the fact you it showing errors like "cant use + on classes" etc, when using this extension. I love the idea of this, but not having PHPStan support, nor the IDEs liking it, makes it hard to intergrate, unfortunately :-(.

schodemeiss avatar Apr 13 '25 08:04 schodemeiss