From:             [EMAIL PROTECTED]
Operating system: i686-pc-linux-gnu
PHP version:      4.0CVS-2002-04-16
PHP Bug Type:     Scripting Engine problem
Bug description:  set_error_handler and oversized upload

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 bug report at http://bugs.php.net/?id=16640&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16640&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16640&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16640&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16640&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16640&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16640&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16640&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16640&r=submittedtwice

Reply via email to