php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52034 PHP programmer
Submitted: 2010-06-09 19:17 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: hettbox at gmail dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.3.2 OS: Windows 2008 x86
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hettbox at gmail dot com
New email:
PHP Version: OS:

 

 [2010-06-09 19:17 UTC] hettbox at gmail dot com
Description:
------------
If time for uploading file more than 30 seconds, then PHP reports an error: "Fatal error: Maximum execution time of 30 seconds exceeded"

If configure server on max_execution_time more 30 seconds (for example 3600), then after 30 secons server generated error "Fatal error: Maximum execution time of 3600 seconds exceeded"

Sorry, im russian...

Test script:
---------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Uploading</title>
</head>

<body>
<form name="frm" enctype="multipart/form-data" method="post" action="upload.php">
<input type="file" name="uploaded_file" />
<input type="submit" value="Загрузить" />
</form>

<?php
    if (isset($_FILES['uploaded_file']))
	{
      if ($_FILES['uploaded_file']['error'] == 0)
      {
            $path = pathinfo(__FILE__);
            $path = $path['dirname'];
            $file = $path . '\\' . $_FILES['uploaded_file']['name'];

            if (move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $file))
            {
               $path = pathinfo($file);
               echo 'Uploaded complete! <br />
                     File name: ' . $path['basename'];
            }
      }
	}
?>

</body>

</html>


Expected result:
----------------
File must be loaded on the server. (Im russian, sorry =))

Actual result:
--------------
File not loaded on the server.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-09 19:22 UTC] hettbox at gmail dot com
On the PHP 5.3.1 its work!
 [2010-06-10 11:15 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-06-10 11:15 UTC] kalle@php.net
Have you tried to increase the max_input_time php.ini setting?
 [2010-06-10 11:41 UTC] hettbox at gmail dot com
If configure server on max_execution_time more 30 seconds 
(for example 3600), then !!!after 30 secons!!! 
server generated error "Fatal error: Maximum 
execution time of !!!3600 seconds!!! exceeded"

Server generating error on max_execution_time!

Плохо с английским. Попробую по русски. 
Во время выполнения скрипта не должно входить время на загрузку файла, на сколько мне известно. В предыдущих версиях PHP так и было, но в версии PHP 5.3.2 по каким-то непонятным причинам это стало учитываться.
 [2010-06-10 11:41 UTC] hettbox at gmail dot com
If configure server on max_execution_time more 30 seconds 
(for example 3600), then !!!after 30 secons!!! 
server generated error "Fatal error: Maximum 
execution time of !!!3600 seconds!!! exceeded"

Server generating error on max_execution_time!

Плохо с английским. Попробую по русски. 
Во время выполнения скрипта не должно входить время на загрузку файла, на сколько мне известно. В предыдущих версиях PHP так и было, но в версии PHP 5.3.2 по каким-то непонятным причинам это стало учитываться.
 [2010-06-10 12:14 UTC] hettbox at gmail dot com
Try!

<?php
    sleep(31);
    echo 'is ok!';
?>

Result: Fatal error: Maximum execution time of 30 seconds exceeded in D:\wwwroot\host\tmp\check.php on line 4
 [2010-06-10 12:19 UTC] hettbox at gmail dot com
<?php
    ini_set('max_execution_time', 5);
    sleep(6);
    echo 'is ok!';
?>
 [2010-06-10 14:34 UTC] hettbox at gmail dot com
This problem detected on WINDOWS only.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC