|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-06 20:33 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 16:00:01 2025 UTC |
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