PHP max_execution_time ihmal (hayır güvenli mod, hiçbir ortak konak, sadece localhost/windows7/php 5.3.1 ve Apache zaman aşımı 300)

1 Cevap

Php.ini ve htaccess içinde max_execution_time ve php bildirilen uyarı mesajıyla reportet daha, kesinlikle daha yüksek olduğundan, bu sorun, bana fındık sürücüler.

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

Çıktı:

Maksimum yürütme süresi: 240

Ölümcül hata: C aşıldı 60 saniye Maksimum yürütme zamanı: \ xampp \ htdocs \ timetest.php 5. satırdaki

Answer

Yes, it seems to be a bug: max_input_time overwrites max_execution_time!

htaccess:

php_value max_execution_time 240
php_value max_input_time 111

timetest.php:

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

Çıkış (proof):

Maksimum yürütme süresi: 240

Maksimum giriş zamanı: 111

Ölümcül hata: C aşıldı 111 saniye Maksimum yürütme zamanı: \ xampp \ htdocs \ timetest.php hattı 6

Yardımın için teşekkürler!

1 Cevap

Bu bir PHP hata var. Burada bildirilen http://bugs.php.net/48949

Edit: max_input_time max_execution zamanla-yazar Bulundu. Bu sizinle konu olmalıdır.