set_error_handler() and @ error control operator

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-26-2003
JohnVT
 
Posts: n/a
Default set_error_handler() and @ error control operator

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




Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0