From: [EMAIL PROTECTED] Operating system: Win98 PHP version: 4.2.1 PHP Bug Type: *General Issues Bug description: @ operator does not work properly
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 bug report at http://bugs.php.net/?id=17393&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17393&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17393&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17393&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17393&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17393&r=support Expected behavior: http://bugs.php.net/fix.php?id=17393&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17393&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17393&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17393&r=globals