(PHP 8 >= 8.6.0)
The StreamErrorMode enum specifies how the errors of a stream operation are reported. It is the value of the error_mode stream context option.
error_mode
E_WARNING