Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does setting "max_execution_time" to "-1" do?

Tags:

php

I saw this in a script I have to work with. What does setting "max_execution_time" to "-1" do?

like image 728
Andrew Samuelsen Avatar asked Oct 30 '25 03:10

Andrew Samuelsen


1 Answers

It sets the maximum execution time for a script to 2**32-1 (or perhaps 2**64-1) seconds, which is a reasonable approximation of "forever". Note that the actual value to make a script run forever is 0.

like image 172
Ignacio Vazquez-Abrams Avatar answered Oct 31 '25 16:10

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!