php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50377 Maximum execution time of 0 seconds exceeded
Submitted: 2009-12-03 18:46 UTC Modified: 2009-12-03 18:59 UTC
From: fdintino at nflc dot org Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.3.1 OS: Windows 2003 Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fdintino at nflc dot org
New email:
PHP Version: OS:

 

 [2009-12-03 18:46 UTC] fdintino at nflc dot org
Description:
------------
I would re-open Ticket #42706, but I don't have a login. Issue is the 
same:

With the following configuration I get the error message: "Maximum 
execution time of 0 seconds exceeded"

max_execution_time = 0     
max_input_time = 60  

"Maximum execution time of 0 seconds exceeded" is an impossibility; 
what's happening is that it's reporting the wrong configuration 
variable in the timeout error message.

The issue appears to be that the calls to zend_timeout don't 
distinguish between the two types of timeouts



Reproduce code:
---------------
Make sure not to run this on the localhost, because the input time will likely be less that 1 second in that case

in php.ini:

max_input_time = 1

<?php

set_time_limit(0);
?>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" 
enctype="multipart/form-data">
    <input type="file" name="upload_file" id="file" />
    <input type="submit" value="submit" />
</form>


Expected result:
----------------
Error message: "Maximum input time of 1 seconds exceeded"

Actual result:
--------------
Error message: "Maximum execution time of 0 seconds exceeded "

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-03 18:59 UTC] rasmus@php.net
Duplicate of bug #49868 and already fixed in SVN.  Will be in 5.3.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 05:01:31 2024 UTC