tedious / JShrink

Javascript Minifier built in PHP
http://www.tedivm.com
BSD 3-Clause "New" or "Revised" License
749 stars 152 forks source link

upgrade from PHP 7.4 to PHP 8.1 : PHP Fatal error: Maximum execution time of 60 seconds exceeded in Minifier.php on line 292 #109

Closed Raf-sns closed 1 year ago

Raf-sns commented 1 year ago

Hi, I moved to another server and updated PHP version to 8.1, JShrink was working fine with PHP 7.4 but I get this error with PHP 8.1.

I do not understand where the script crashes, my compression is very fast in general, there I pushed the max_execution_time to 60 seconds and it crashes, it sends me the following message in error_log:

PHP Fatal error: Maximum execution time of 60 seconds exceeded in ... /Minifier.php on line 292.

I didn't add more code and usually in 2-3 seconds I compress all my JS resources, everything was fine until I upgraded to PHP 8.1.

Thank you for your answers and comments, Sincerely, Raf

Raf-sns commented 1 year ago

Ok, I just found the versions:

https://github.com/tedious/JShrink/releases

Everything works fine again with version 1.4.0, I just had trouble finding the versions.

Thanks for this awesome script, it saves some datas. Regards, Raf

tedivm commented 1 year ago

Since the newest version seems to be working I'm going to close this out, but if you run into any problems feel free to reopen!