This repository was archived by the owner on Oct 1, 2023. It is now read-only.
Commit bc972ff
committed
Check for end of file before awaiting
On Linux, awaiting for read on an EOF returns immediately; on Mac, it
never returns. This is a regression caused by the recent fix to not
specify invalid flags to `stream_await()` - the invalid flags made it
/always/ return immediately, hiding this bug.
Test Plan:
`tests/filesystem/FileTest.php` freezes forever on mac without this
change; it passes with it.1 parent 989c594 commit bc972ff
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments