|
stream_last_errorsReturns the stored errors of the most recent stream operation Description
array stream_last_errors()
Returns the errors that were stored by the most recent stream operation
that stored any. Which errors an operation stores is controlled by the
The stored errors are replaced when a later operation stores errors. They are kept when a later operation succeeds or does not store its errors, and can be discarded with stream_clear_errors. ParametersThis function has no parameters. Return ValuesReturns a list of StreamError objects in the order in which the errors were reported, or an empty array if no errors are stored. ExamplesExample #1 stream_last_errors example The above example will output: bool(false) OpenFailed: Failed to open stream: No such file or directory See Also
|