The flag STREAM_REPORT_ERRORS
is never sent to the StreamWrapper
#3010
Labels
STREAM_REPORT_ERRORS
is never sent to the StreamWrapper
#3010
As I understand it, since php/php-src#6190, the flag
STREAM_REPORT_ERRORS
is never sent to theStreamWrapper
instances.The documentation should be updated, as it is not necessary to have code that handle this flag.
doc-en/reference/stream/streamwrapper/stream-open.xml
Lines 79 to 84 in 21191d3
doc-en/reference/stream/constants.xml
Lines 80 to 85 in 21191d3
What should be the best practice when implementing a StreamWrapper, in case of error? Returning
false
silently, trigger aE_USER_ERROR
or throwing an exception?The text was updated successfully, but these errors were encountered: