Skip to content

fix: don't delete an unitialized timer #12537

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 1 commit into from
Oct 29, 2023

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Oct 27, 2023

This change (proposed by @arnaud-lb) prevents calling timer_delete() on an uninitialized timer in https://github.com/php/php-src/blob/php-8.1.25/Zend/zend_max_execution_timer.c#L96 in case the timer has not been created (e.g.: when running out of available kernel timers under high loads).

@staabm
Copy link
Contributor

staabm commented Oct 27, 2023

Should this target a release branch?

@devnexen
Copy link
Member

I would say it should indeed.

@dunglas dunglas changed the base branch from master to PHP-8.1 October 27, 2023 20:55
@dunglas
Copy link
Member Author

dunglas commented Oct 27, 2023

Target branch fixed.

@arnaud-lb arnaud-lb merged commit 39f3374 into php:PHP-8.1 Oct 29, 2023
arnaud-lb added a commit that referenced this pull request Oct 29, 2023
* PHP-8.1:
  [ci skip] NEWS
  fix: don't delete an unitialized timer (#12537)
arnaud-lb added a commit that referenced this pull request Oct 29, 2023
* PHP-8.2:
  [ci skip] NEWS
  [ci skip] NEWS
  fix: don't delete an unitialized timer (#12537)
arnaud-lb added a commit that referenced this pull request Oct 29, 2023
* PHP-8.3:
  [ci skip] NEWS
  [ci skip] NEWS
  [ci skip] NEWS
  fix: don't delete an unitialized timer (#12537)
@arnaud-lb
Copy link
Member

Thank you!

@dunglas dunglas deleted the fix/ensure-timer-init branch October 29, 2023 13:21
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