Skip to content

Support PHP 8.6#49

Merged
rlerdorf merged 1 commit intomasterfrom
php86-support
Mar 11, 2026
Merged

Support PHP 8.6#49
rlerdorf merged 1 commit intomasterfrom
php86-support

Conversation

@rlerdorf
Copy link
Member

zval_dtor() was removed in PHP 8.6 and is just an alias for zval_ptr_dtor_nogc()

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the extension’s zval cleanup calls to account for PHP 8.6 removing zval_dtor() (per PR description) by replacing it with zval_ptr_dtor_nogc() in worker/client/task code paths.

Changes:

  • Replace zval_dtor() with zval_ptr_dtor_nogc() in php_gearman_worker.c.
  • Replace zval_dtor() with zval_ptr_dtor_nogc() in php_gearman_client.c.
  • Replace zval_dtor() with zval_ptr_dtor_nogc() in php_gearman_task.c.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
php_gearman_worker.c Swap zval destructor calls in worker ctor/free/callback paths for PHP 8.6 compatibility.
php_gearman_task.c Swap zval destructor calls in task object free handler.
php_gearman_client.c Swap zval destructor calls in client object free handler and callback-reset paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rlerdorf rlerdorf merged commit 6b2923f into master Mar 11, 2026
16 checks passed
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.

2 participants