-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
The GridFS StreamWrapper's stream_read and stream_write methods currently catch exceptions from our stream classes and instead trigger PHP warnings and return false. While this complies with the suggested streamWrapper API, it may be more useful to expose users to the original exception instead.
Before making this change, we should see if might cause adverse affects with PHP's own stream functions (e.g. stream_get_contents()).
Implementing this would allow us to remove some special handling in our GridFS and unified spec test runners that currently check for PHP warnings instead of exceptions to detect certain GridFS errors.
- is related to
-
PHPLIB-493 Unified test format implementation
- Closed
-
PHPLIB-672 Drop support for PHP 7.1
- Closed
- related to
-
PHPLIB-679 Check presence and type of operation args in unified spec tests
- Closed
-
PHPLIB-427 GridFS StreamWrapper should report EOF after an exception
- Closed