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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 11:01:32 2025 UTC