phpday 2027 - Call for Papers

The StreamErrorMode Enum

(PHP 8 >= 8.6.0)

Introduction

The StreamErrorMode enum specifies how the errors of a stream operation are reported. It is the value of the error_mode stream context option.

Enum synopsis

enum StreamErrorMode
{
case Error ; // Errors are reported as diagnostics, such as E_WARNING. This is the default.

case Exception ; // A StreamException is thrown for terminating errors.

case Silent ; // Errors are not reported.

}

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top