-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit ca4a841
Remove include "sanity check" to get better error (#19650)
* Remove include "sanity check" to get a better error message
Instead of rejecting directories / non-regular files early with
a generic error, we should just accept them and error later when a
read is attempted. This is more general and will generate a better
error message on Linux. On Windows, the error remains the same as
before.
* Update error message to include include_path
fix format for include path
---------
Co-authored-by: Joe Watkins <krakjoe@php.net>1 parent 5e9080f commit ca4a841
File tree
4 files changed
+48
-26
lines changed- Zend/tests
- ext/standard/tests/file
- main/streams
4 files changed
+48
-26
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
3 | 7 |
| |
4 | 8 |
| |
5 | 9 |
| |
| |||
8 | 12 |
| |
9 | 13 |
| |
10 | 14 |
| |
11 | - | ||
15 | + | ||
12 | 16 |
| |
13 | 17 |
| |
14 | 18 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 | - | ||
139 | 138 |
| |
140 | 139 |
| |
141 | 140 |
| |
| |||
161 | 160 |
| |
162 | 161 |
| |
163 | 162 |
| |
164 | - | ||
163 | + | ||
165 | 164 |
| |
166 | 165 |
| |
167 | 166 |
| |
| |||
1188 | 1187 |
| |
1189 | 1188 |
| |
1190 | 1189 |
| |
1191 | - | ||
1192 | 1190 |
| |
1193 | - | ||
1194 | - | ||
1195 | - | ||
1196 | - | ||
1197 | - | ||
1198 | - | ||
1199 | - | ||
1200 | - | ||
1201 | - | ||
1202 | - | ||
1203 | - | ||
1204 | - | ||
1205 | - | ||
1206 | - | ||
1207 | - | ||
1208 | - | ||
1209 | - | ||
1210 | - | ||
1211 | - | ||
1212 | - | ||
1213 | - | ||
1214 | - | ||
1215 | 1191 |
| |
1216 | 1192 |
| |
1217 | 1193 |
| |
|
0 commit comments