Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add defer function for deferred execution #409

Closed
wants to merge 1 commit into from

Conversation

SonyPradana
Copy link
Owner

Q A
Is bugfix? Yes / No
New feature? Yes / No
Breaks BC? Yes / No
Fixed issues comma-separated list of tickets # fixed by the PR, if any

Introduce a defer function to allow deferred execution of callbacks after the response is sent. Include tests to verify the functionality of the new feature.

{
if (function_exists('fastcgi_finish_request')
|| function_exists('litespeed_finish_request')
|| false === in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

all logic above this will by pass, please remove this or use and combination

@SonyPradana
Copy link
Owner Author

deferent require some conditions we need run natively at all

@SonyPradana SonyPradana closed this Jan 4, 2025
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