I have installed xampp-windows-x64-5.6.40-1-VC11-installer.exe.
It looks like
- Code: Select all
ini_set('max_execution_time',0);
doesn't work. I know that there is TimeOut Setting in httpd-default.conf which now is set to 300.
In my last expirience with Apache 2.2 + PHP 5.3.X there wasn't a problem with that.
When I set max_execution_time to 0 or higher than apache it worked (apache 2.2 + php 5.3.x) correctly.
When i did it on the Apache 2.4 and PHP 5.6.40 it looks like after 300 sec Apache "executes again" php script.
There is no timeout error but the script never ends.
Example:
TimeOut Setting in Apache it's 300.
- Code: Select all
ini_set('max_execution_time',350);
unlink('test.txt');
file_put_contents('test.txt', 'START ' . date('H:i:s'). "\n\r",FILE_APPEND);
sleep(320);
file_put_contents('test.txt', 'STOP ' . date('H:i:s'). "\n\r",FILE_APPEND);
This code never ends.. After 5 minutes (300 sec) there is the new file test.txt with just 'START' line.
Can anybody help me ? In my opinion the PHP setting should have priority.
Greetings,
Wojtek