Bug #16640 Updated: set_error_handler and oversized upload
| From: | jan@php.net | Date: | Sun, 07 Jul 2002 18:26:27 +0000 |
| Subject: | Bug #16640 Updated: set_error_handler and oversized upload | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-13419@lists.php.net to get a copy of this message | ||
ID: 16640
Updated by: jan@php.net
Reported By: alberty@neptunelabs.de
-Status: Verified
+Status: Closed
Bug Type: Documentation problem
Operating System: i686-pc-linux-gnu
PHP Version: 4.0CVS-2002-04-1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-05 14:14:18] sniper@php.net
The error values given in the $_FILES array should also
be documented.
------------------------------------------------------------------------
[2002-04-16 13:33:02] sander@php.net
This warning is generated BEFORE your scripts executes, and therefor
your error handler isn't initialized yet.
Reclassified as a documentation problem.
------------------------------------------------------------------------
[2002-04-16 13:16:40] alberty@neptunelabs.de
Hi,
in the documentation to set_error_handler() is declared that
an own error handler "completely bypassed" the php error functions.
But if i limit the post upload size with post_max_size and post a file
with a bigger size as the limit, php results a warning like
'Warning: POST Content-Length of 8796223 bytes exceeds the limit of
8388608 bytes in Unknown on line 0'
and the error handler is not affected!!!
Is this an error by design, because the script is in this case not
affected and not executed?
Here a test script:
---snip---
<?php
function my_error_handler ($errno, $errstr, $errfile, $errline) {
echo "error handler call";
}
set_error_handler('my_error_handler');
?>
<hr>Upload Test Form
<form name="uploadform" enctype="multipart/form-data" method="post"
action="error_handler_test.php">
<input type=file name="checkfile" size=50 accept="text/html">
<input type="submit" value="upload">
</form>
---snap---
Regards,
Steve
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16640&edit=1