Skip to content

opcache: Call orig_post_shutdown_cb() - #24761

Closed
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:opcache-orig_post_shutdown_cb
Closed

ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:opcache-orig_post_shutdown_cb

Conversation

@ndossche

Copy link
Copy Markdown
Member

This was never called and resulted in this compiler warning:

./ext/opcache/ZendAccelerator.c:3720:15: warning: variable 'orig_post_shutdown_cb' set
      but not used [-Wunused-but-set-global]
 3720 | static void (*orig_post_shutdown_cb)(void);
      |               ^

This was never called and resulted in this compiler warning:

```
./ext/opcache/ZendAccelerator.c:3720:15: warning: variable 'orig_post_shutdown_cb' set
      but not used [-Wunused-but-set-global]
 3720 | static void (*orig_post_shutdown_cb)(void);
      |               ^
```

@iliaal iliaal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@NattyNarwhal NattyNarwhal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FWIW I don't think anything actually ever sets this other than opcache (introduced in 33e777a), so that's why it probably didn't cause any problems.

@ndossche

Copy link
Copy Markdown
Member Author

FWIW I don't think anything actually ever sets this other than opcache (introduced in 33e777a), so that's why it probably didn't cause any problems.

This is intended mostly for third party extensions anyway

@ndossche ndossche closed this in 37f495c Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants