php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16640 set_error_handler and oversized upload
Submitted: 2002-04-16 13:16 UTC Modified: 2002-07-07 14:26 UTC
From: alberty at neptunelabs dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0CVS-2002-04-1 OS: i686-pc-linux-gnu
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: alberty at neptunelabs dot de
New email:
PHP Version: OS:

 

 [2002-04-16 13:16 UTC] alberty at neptunelabs dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-16 13:33 UTC] 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-07-05 14:14 UTC] sniper@php.net
The error values given in the $_FILES array should also
be documented.
 [2002-07-07 14:26 UTC] jan@php.net
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.


 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of jan
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=60f83a4381f14a97a1fb4ca60e7b1a4bfbaaebd9
Log: - fix #16640
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 04:01:32 2024 UTC