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

Degrade gracefully when set_time_limit() is disabled #256

Merged

Conversation

TravisCarden
Copy link
Collaborator

Fixes #253

Some shared hosting disables the PHP set_time_limit() function, so calls to it cause fatal errors. This makes sure the function exists before calling it and ignores the timeout if not.

…ice\PhpFileSyncer::sync() with Internal\Environment\Service\EnvironmentInterface::setTimeLimit().
…ice\PhpFileSyncer::sync() with Internal\Environment\Service\EnvironmentInterface::setTimeLimit().
…ice\Filesystem::remove() with Internal\Environment\Service\EnvironmentInterface::setTimeLimit().
@TravisCarden TravisCarden merged commit 2241c2e into php-tuf:develop Aug 17, 2023
8 checks passed
@TravisCarden TravisCarden deleted the feature/safe-set-time-limit branch August 17, 2023 19:50
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.

check if set_time_limit is available before calling it
1 participant