[php-src] Issue #19102: stream_get_contents() only returns FALSE when an invalid offset is provided
| From: | staabm | Date: | Sat, 12 Jul 2025 08:09:11 +0000 |
| Subject: | [php-src] Issue #19102: stream_get_contents() only returns FALSE when an invalid offset is provided | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250420@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19102
Author: staabm
### Description
[could this path which returns
FALSE](https://github.com/php/php-src/blob/8712f4bf19d388e9e73d6c1c80e691f35df36d13/ext/standard/streamsfuncs.c#L466-L468)
be turned into a exception, so
stream_get_contents() could return string,
instead of string|false?