Throwing exception from custom error handler in PHP – Apache
I was working on resource streams and more specifically on fopen(). This function throws a warning when failing, in addition to returning false instead of a resource. The unwanted warnings beings a problem I decided to suppress them. Two possibilities…