[php-src] PR #13942: fix: prevent C errors when using weird max_execution_time values
| From: | dunglas | Date: | Thu, 11 Apr 2024 14:06:29 +0000 |
| Subject: | [php-src] PR #13942: fix: prevent C errors when using weird max_execution_time values | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25715@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13942
Author: dunglas
Calling
set_time_limit() or setting max_execution_time to a negative value
or to a value superior to 999,999,999 can trigger C errors: https://github.com/dunglas/frankenphp/issues/713
/ https://linux.die.net/man/2/setitimer
This patch normalizes such values as 0.
@withinboredom raised the issue on https://externals.io/message/123108, and we may
indeed correctly specify this behavior, but in the meantime, we should at least not throw a C error,
which is inconsistent with what is done on other platforms.