Script aborts after 300 seconds, although max_execution_time = 2400 is defined in php.ini

I have a local xampp with php8 installed.

  • Testing 1
    echo ini_get('max_execution_time');
    also results the 2400 from php.ini

  • Testing 2

    echo "Max execution time: ".ini_get("max_execution_time")."<br />";

    echo "Max input time: ".ini_get("max_input_time")."<br />";

Max execution time: 2400

Max input time: 60

  • ini_set(‘MAX_EXECUTION_TIME’, ‘-1’);
    no change

  • Error
    Fatal error: Maximum execution time of 300 seconds exceeded in C:xampphtdocs..incdatenbank.php on line xx