Bug #17393 Updated: @ operator does not work properly

From: Date: Fri, 07 Jun 2002 00:33:09 +0000
Subject: Bug #17393 Updated: @ operator does not work properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9685@lists.php.net to get a copy of this message
ID: 17393 Updated by: sniper@php.net Reported By: ferguson@knightsweb.net -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Win98 PHP Version: 4.2.1 New Comment: This is documented here: http://www.php.net/manual/en/function.set-error-handler.php Not a bug. Previous Comments: ------------------------------------------------------------------------ [2002-05-23 13:32:44] ferguson@knightsweb.net When using set_error_handler() the @ operator does not work. It could be that it is not ment to work! If this is the case, i cant seem to find a way to tell if there was a @ request while using set_error_handler! This is what i mean. This code presumes that there is a function named FunctionName that is desinged to handle errors... or there would be another error i couldnt fix with @ :) (code not tested) eg. error_reporting (E_ALL); $NewArray['ThisIsHere'] = 'This is good'; echo $NewArray['ThisIsNotHere']; // would report error echo @$NewArray['ThisIsNotHere']; // would not reprot error echo $NewArray['ThisIsHere']; // would not report error set_error_handler('FunctionName') echo $NewArray['ThisIsNotHere']; // would report error echo @$NewArray['ThisIsNotHere']; // would reprot error echo $NewArray['ThisIsHere']; // would not report error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17393&edit=1

« previous php.bugs (#9685) next »