I am calling shell commands that might take a while and should be interrupted after 5 minutes. Anyways, this does not seem to work.
I boiled it down to the following test code:
<?php
set_time_limit(1);
echo 'TL = ' . set_time_limit(1) . PHP_EOL;
sleep(5);
echo 'finished, not interrupted';
This gives me the following output:
TL = 1 finished, not interrupted
So it looks the timelimit is set properly - but the script still runs for 5 seconds.
I am using PHP version 5.6.11 with mod_php