Reputation: 81
Does someone face such problem?
set_time_limit() function changes the 'max_execution_time' value, but returns false
php -r 'var_dump(ini_get("max_execution_time"), set_time_limit(5), ini_get("max_execution_time"));'
Command line code:1:
string(1) "0"
Command line code:1:
bool(false)
Command line code:1:
string(1) "5"
Upvotes: 3
Views: 778
Reputation: 81
Found a solution: If you have enabled xdebug mod in your php.ini - set_time_limit() function will always return false
Upvotes: 5