|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-01-02 04:00 UTC] dophini at dir dot bg
Description:
------------
PHP version:
PHP 7.0.14-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.14-1~dotdeb+8.1, Copyright (c) 1999-2016, by Zend Technologies
Try to set max_execution_time to custom value bigger than 0. php -i gives max_execution-time always 0
Test script:
---------------
1. editing /etc/php/7.0/cli/php.ini
2. setting max_execution_time to 30 seconds
3. php -i | grep max_execution
shows max_execution_time =0
4. let's see path to php.ini?
php -i | grep php.ini
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
Hi *, the max execution time is hardcoded to 0 for the cli. You can set the max_execution_time on the commandline with php -d max_execution_time=5 script.php or in the script: set_time_limit(10); // this way ini_set('max_execution_time', 10); // or this way Greetings, Dierk