I'm not sure what to say... it's frustrating, but there are times when I run into situations in PHP where there's no accessor-type function that I can use to check if the next action will cause an error, and yet there is no way to (gracefully/quietly) 'catch' any errors that due actually occur when you actually perform that action. Unless I'm missing something, it looks like you might be facing a similar dilemma here. One possible solution might be to: store current error logging/outputting settings somewhere, [man]ini_set/man them such that no PHP warnings are logged/displayed anywhere, perform whatever operation(s) you need, and then restore those previous settings after you're done.
Or, alternatively, see below.
rayge99;10988947 wrote:What i need to do is handle any native php warnings such as this in a way so i can control the output of them how i see fit.
Have you considered writing your own error handler? (See the manual page for [man]set_error_handler/man for more info on that.)