|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-12 17:08 UTC] sniper@php.net
[2002-04-13 09:29 UTC] alberty at neptunelabs dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 21:00:01 2025 UTC |
Hi, the @ Error Control Operator doesnt suppress warnings (e.g.:E_WARNING), if an own error handler is declared. the follow code snip demonstrate the problem: <?php error_reporting(E_ALL); function error_handler ($errno, $errstr, $errfile, $errline) { echo "$errstr <br>in $errfile<br>line $errline<br>"; } $old_error_handler = set_error_handler('error_handler'); $dbconnect=@mysql_pconnect('foobar-server', 'bart', 'simson'); ?> I think this is a bug, because this behavior is not documented. Regards, Steve