Skip to content

add support for Zend Max Exeuction Timers on FreeBSD #13393

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

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Feb 14, 2024

Add support for the new timeout system (#10141) on FreeBSD.
See also #12814 (comment).

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

Looking good thanks for doing this.

@dunglas
Copy link
Member Author

dunglas commented Feb 15, 2024

Thanks, but don't merge yet until we can test on a real FreeBSD. I'm on vacation with no access to a FreeBSD box. I'll test when I'll be back home.

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

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

Testing on FreeBSD 13.1, CLOCK_BOOTTIME is not supported by timer_create(). According to the manpage we can use CLOCK_REALTIME or CLOCK_MONOTONIC (we could use this one as nearly equivalent for our purpose).

Other than that, after testing with apache2/mod_php it looks good to me!

Let us know when you are ready to merge.

@dunglas dunglas marked this pull request as ready for review February 15, 2024 16:34
@dunglas
Copy link
Member Author

dunglas commented Feb 15, 2024

Thanks for testing Arnaud! I updated the code. If you confirm that it works, then we can merge!

@arnaud-lb arnaud-lb merged commit f84d046 into php:master Feb 16, 2024
@dunglas dunglas deleted the fix/freebsd-max-execution-timers branch February 16, 2024 12:22
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.

4 participants