[php-src] PR #12886: Fix max_execution_time with cli-server router script
| From: | iluuu1994 | Date: | Wed, 06 Dec 2023 19:16:20 +0000 |
| Subject: | [php-src] PR #12886: Fix max_execution_time with cli-server router script | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24435@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12886
Author: iluuu1994
When the cli-server specifies a router script, we run it using zend_execute_scripts instead of
php_execute_script, because the former preserves the return value of the script. However,
php_execute_script also starts resets the execution timer with the value from max_execution_time. If
the timer has previously been initialized with max_input_time, it will never be reset, and thus
trigger at the incorrect time.