From:             rohezal2000 at yahoo dot de
Operating system: Windows 98 SE
PHP version:      4.3.5
PHP Bug Type:     Documentation problem
Bug description:  termination because of max_input_time returns error for 
max_execution_time

Description:
------------
(I am posting the following as a documentation problem, since it refers to
an unclear error message returned by PHP. It has nothing to do with the
online documentation or any help files.)

If a script is terminated because the uploading process (e.g. the sending
of POST data) takes too long, an error message is returned stating that
the script was terminated because of exceeding the max_execution_time.

I was using a script to save files uploaded with POST to the server's
harddisk. If it was a larger file, the following error message was
returned:

Fatal error: Maximum execution time of 30 seconds exceeded in
e:\www\apache\htdocs\ul\index.php on line 7

Since the script itself only needs seconds to execute, this led me to the
false conclusion, that the uploading time is counted as script execution
time. However, the error could not be corrected by setting the
max_execution_time to a high value.
The error message for termination because of script running time should
not be used for termination because of input time to avoid confusion.

(I am sorry if I double post this bug, the AND wordsearch in the bug area
does not seem to work for me - I already filed a bug report about this)

Reproduce code:
---------------
php.ini:
max_execution_time = 14400     ; Maximum execution time of each script, in
seconds
max_input_time = 60     ; Maximum amount of time each script may spend parsing
request data

line 7 of my script:
<?php

POST data to a script which takes over 60 seconds to send to get the error
message.

Expected result:
----------------
A message stating that the problem is the max_input_time variable, e.g.:

Fatal error: Maximum input time of 60 seconds exceeded in
e:\www\apache\htdocs\ul\index.php on line 7

Actual result:
--------------
Fatal error: Maximum execution time of 14400 seconds exceeded in
e:\www\apache\htdocs\ul\index.php on line 7

-- 
Edit bug report at http://bugs.php.net/?id=28572&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28572&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28572&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28572&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28572&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28572&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28572&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28572&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28572&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28572&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28572&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28572&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28572&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28572&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28572&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28572&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28572&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28572&r=float

Reply via email to