changed error reporting to E_WARNING && E_ERROR