Skip to content

Conversation

@Majkl578
Copy link

PHP 8.3 introduced some changes to how object handlers are registered.

Quote from UPGRADING.INTERNALS:

zend_class_entry now possesses a default_object_handlers field, which provides a default object handler when create_object() is not overriding it.

This fix rougly mimics the change done in bundled PHP extensions in this commit: php/php-src@94ee4f9 while keeping pre-8.3 compatibility.

I've also split the constructor test for PHP <8.1 and >=PHP 8.1 since there's a deprecation emitted by PHP as of PHP 8.1:

Deprecated: Decimal\Decimal::__construct(): Passing null to parameter #2 ($precision) of type int is deprecated in /work/php-decimal/ext-decimal/tests/php8/methods/__construct.php on line 92

The tests should be green an all PHP 7.4-8.3 (didn't test older versions).

closes #77

@rtheunissen rtheunissen merged commit e1d27d3 into php-decimal:1.x Dec 22, 2023
@rtheunissen
Copy link
Contributor

This is great work, thank you so much. I'll work on a release for this and apply the same to 2.x

@taxaos
Copy link

taxaos commented Jan 8, 2024

@rtheunissen Any chance for a release please soon? We want to update to PHP8.3 :) That would be very nice!

@rtheunissen
Copy link
Contributor

There is a release on PECL but not on Github yet – I'll get on that.

@bobvandevijver
Copy link
Contributor

@rtheunissen I'm not seeing any updated release on PECL, only 1.4.0 from early 2021 is listed? Would also love to upgrade to PHP8.3 with our projects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants