This is a discussion on set_error_handler() and @ error control operator within the PHP Language forums, part of the PHP Programming Forums category; Hi. I mentioned this before, but I think my question got kind of lost. I'll make it one short ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi.
I mentioned this before, but I think my question got kind of lost. I'll make it one short question now. With set_error_handler('myErrorHandler') I bypass PHP's standard error handler, including the error control operator @. Can I still make @ work with my own error handler? Or, how would I avoid getting two warnings in: if (!($fp = @fopen('not_a_file', 'r'))) trigger_error("Can't open file", E_USER_WARNING); when using my own error handler? Thanks, - John |