PHP max_execution_time ignored (no safe mode, no shared host, just localhost/windows7/php 5.3.1 and

Posted by Felix on Stack Overflow See other posts from Stack Overflow or by Felix
Published on 2010-03-24T09:33:12Z Indexed on 2010/03/24 9:43 UTC
Read the original article Hit count: 224

Filed under:

This problem drives me nuts, because the max_execution_time in the php.ini and in the htaccess and reported from php is definitely higher, than reportet in the warning message.

<?php
echo "Max execution time: ".ini_get("max_execution_time")."<br />";
while(true)
{
    sleep(1);
}
?>

Output: Max execution time: 240

Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\timetest.php on line 5

© Stack Overflow or respective owner

Related posts about php