From:             
Operating system: Windows 2008 x86
PHP version:      5.3.2
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:PHP programmer

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.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52034&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52034&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52034&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52034&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52034&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52034&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52034&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52034&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52034&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52034&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52034&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52034&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52034&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52034&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52034&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52034&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52034&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52034&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52034&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52034&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52034&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52034&r=mysqlcfg

Reply via email to