ID:               28572
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rohezal2000 at yahoo dot de
-Status:           Open
+Status:           Wont fix
 Bug Type:         PHP options/info functions
 Operating System: Windows 98 SE
 PHP Version:      4.3.5
 New Comment:

The error message cannot be changed because the time taken 
to process the input is being measures by the very same 
mechanism as that timing the script execution. 


Previous Comments:
------------------------------------------------------------------------

[2004-05-30 10:55:25] [EMAIL PROTECTED]

I've documented this a little bit in the feature section.

However, if PHP is displaying a wrong message, it isn't a documentation
problem.

------------------------------------------------------------------------

[2004-05-30 00:38:08] rohezal2000 at yahoo dot de

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 this bug report at http://bugs.php.net/?id=28572&edit=1

Reply via email to