Skip to content

Commit 33a4422

Browse files
committed
Update tests for windows
1 parent 2ad4395 commit 33a4422

File tree

6 files changed

+89
-10
lines changed

6 files changed

+89
-10
lines changed

ext/standard/tests/file/007_variation11-win32-mb.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ string(6) "stream"
6868
int(0)
6969
int(37)
7070
int(37)
71+
72+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
7173
bool(false)
7274
int(0)
7375
bool(true)

ext/standard/tests/file/007_variation11-win32.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ string(6) "stream"
6666
int(0)
6767
int(37)
6868
int(37)
69+
70+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
6971
bool(false)
7072
int(0)
7173
bool(true)

ext/standard/tests/file/007_variation13-win32.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ unlink(__DIR__."/007_variation13.tmp");
5656
resource(%d) of type (stream)
5757
string(6) "stream"
5858
int(37)
59+
60+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
5961
bool(false)
6062
int(0)
6163
bool(true)

ext/standard/tests/file/fgetss_variation1-win32.phpt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ bool(true)
8888
int(0)
8989
bool(false)
9090
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
91+
92+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
9193
bool(false)
9294
int(0)
9395
bool(false)
@@ -98,6 +100,8 @@ bool(true)
98100
int(0)
99101
bool(false)
100102
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
103+
104+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
101105
bool(false)
102106
int(0)
103107
bool(false)
@@ -108,6 +112,8 @@ bool(true)
108112
int(0)
109113
bool(false)
110114
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
115+
116+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
111117
bool(false)
112118
int(0)
113119
bool(false)
@@ -118,6 +124,8 @@ bool(true)
118124
int(0)
119125
bool(false)
120126
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
127+
128+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
121129
bool(false)
122130
int(0)
123131
bool(false)
@@ -128,6 +136,8 @@ bool(true)
128136
int(0)
129137
bool(false)
130138
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
139+
140+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
131141
bool(false)
132142
int(0)
133143
bool(false)
@@ -138,6 +148,8 @@ bool(true)
138148
int(0)
139149
bool(false)
140150
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
151+
152+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
141153
bool(false)
142154
int(0)
143155
bool(false)
@@ -148,6 +160,8 @@ bool(true)
148160
int(0)
149161
bool(false)
150162
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
163+
164+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
151165
bool(false)
152166
int(0)
153167
bool(false)
@@ -158,6 +172,8 @@ bool(true)
158172
int(0)
159173
bool(false)
160174
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
175+
176+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
161177
bool(false)
162178
int(0)
163179
bool(false)
@@ -168,6 +184,8 @@ bool(true)
168184
int(0)
169185
bool(false)
170186
-- fgetss() with default length, file pointer at 0 , expected : no character should be read --
187+
188+
Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
171189
bool(false)
172190
int(0)
173191
bool(false)

ext/standard/tests/file/fread_variation4-win32.phpt

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ bool(false)
359359
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
360360
int(1024)
361361
bool(false)
362-
Reading 10 bytes from file, expecting 0 bytes ... OK
362+
Reading 10 bytes from file, expecting 0 bytes ...
363+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
363364
int(1024)
364365
bool(false)
365366
-- File opened in mode ab --
@@ -372,7 +373,8 @@ bool(false)
372373
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
373374
int(1024)
374375
bool(false)
375-
Reading 10 bytes from file, expecting 0 bytes ... OK
376+
Reading 10 bytes from file, expecting 0 bytes ...
377+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
376378
int(1024)
377379
bool(false)
378380
-- File opened in mode at --
@@ -384,8 +386,8 @@ int(0)
384386
bool(false)
385387
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
386388
int(1024)
387-
bool(false)
388-
Reading 10 bytes from file, expecting 0 bytes ... OK
389+
Reading 10 bytes from file, expecting 0 bytes ...
390+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
389391
int(1024)
390392
bool(false)
391393
-- File opened in mode w --
@@ -398,7 +400,8 @@ bool(false)
398400
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
399401
int(1024)
400402
bool(false)
401-
Reading 10 bytes from file, expecting 0 bytes ... OK
403+
Reading 10 bytes from file, expecting 0 bytes ...
404+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
402405
int(1024)
403406
bool(false)
404407
-- File opened in mode wb --
@@ -411,7 +414,8 @@ bool(false)
411414
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
412415
int(1024)
413416
bool(false)
414-
Reading 10 bytes from file, expecting 0 bytes ... OK
417+
Reading 10 bytes from file, expecting 0 bytes ...
418+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
415419
int(1024)
416420
bool(false)
417421
-- File opened in mode wt --
@@ -424,7 +428,8 @@ bool(false)
424428
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
425429
int(1137)
426430
bool(false)
427-
Reading 10 bytes from file, expecting 0 bytes ... OK
431+
Reading 10 bytes from file, expecting 0 bytes ...
432+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
428433
int(1137)
429434
bool(false)
430435
-- File opened in mode x --
@@ -437,7 +442,8 @@ bool(false)
437442
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
438443
int(1024)
439444
bool(false)
440-
Reading 10 bytes from file, expecting 0 bytes ... OK
445+
Reading 10 bytes from file, expecting 0 bytes ...
446+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
441447
int(1024)
442448
bool(false)
443449
-- File opened in mode xb --
@@ -463,7 +469,8 @@ bool(false)
463469
-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --
464470
int(1137)
465471
bool(false)
466-
Reading 10 bytes from file, expecting 0 bytes ... OK
472+
Reading 10 bytes from file, expecting 0 bytes ...
473+
Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
467474
int(1137)
468475
bool(false)
469476
Done

ext/standard/tests/file/fwrite_variation1-win32-mb.phpt

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,20 @@ foreach($file_content_types as $file_content_type) {
7878

7979
echo "Done\n";
8080
?>
81-
--EXPECT--
81+
--EXPECTF--
8282
*** Testing fwrite() various operations ***
8383

8484
-- Testing fwrite() with file having content of type numeric --
8585
-- Opening file in r --
8686
int(0)
87+
88+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
8789
bool(false)
8890
int(0)
8991
bool(false)
9092
int(2)
93+
94+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
9195
bool(false)
9296
int(2)
9397
bool(false)
@@ -96,10 +100,14 @@ int(1024)
96100
string(32) "950b7457d1deb6332f2fc5d42f3129d6"
97101
-- Opening file in rb --
98102
int(0)
103+
104+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
99105
bool(false)
100106
int(0)
101107
bool(false)
102108
int(2)
109+
110+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
103111
bool(false)
104112
int(2)
105113
bool(false)
@@ -108,10 +116,14 @@ int(1024)
108116
string(32) "950b7457d1deb6332f2fc5d42f3129d6"
109117
-- Opening file in rt --
110118
int(0)
119+
120+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
111121
bool(false)
112122
int(0)
113123
bool(false)
114124
int(2)
125+
126+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
115127
bool(false)
116128
int(2)
117129
bool(false)
@@ -122,10 +134,14 @@ string(32) "950b7457d1deb6332f2fc5d42f3129d6"
122134
-- Testing fwrite() with file having content of type text --
123135
-- Opening file in r --
124136
int(0)
137+
138+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
125139
bool(false)
126140
int(0)
127141
bool(false)
128142
int(2)
143+
144+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
129145
bool(false)
130146
int(2)
131147
bool(false)
@@ -134,10 +150,14 @@ int(1024)
134150
string(32) "e486000c4c8452774f746a27658d87fa"
135151
-- Opening file in rb --
136152
int(0)
153+
154+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
137155
bool(false)
138156
int(0)
139157
bool(false)
140158
int(2)
159+
160+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
141161
bool(false)
142162
int(2)
143163
bool(false)
@@ -146,10 +166,14 @@ int(1024)
146166
string(32) "e486000c4c8452774f746a27658d87fa"
147167
-- Opening file in rt --
148168
int(0)
169+
170+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
149171
bool(false)
150172
int(0)
151173
bool(false)
152174
int(2)
175+
176+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
153177
bool(false)
154178
int(2)
155179
bool(false)
@@ -160,10 +184,14 @@ string(32) "e486000c4c8452774f746a27658d87fa"
160184
-- Testing fwrite() with file having content of type text_with_new_line --
161185
-- Opening file in r --
162186
int(0)
187+
188+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
163189
bool(false)
164190
int(0)
165191
bool(false)
166192
int(2)
193+
194+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
167195
bool(false)
168196
int(2)
169197
bool(false)
@@ -172,10 +200,14 @@ int(1024)
172200
string(32) "b09c8026a64a88d36d4c2f17983964bb"
173201
-- Opening file in rb --
174202
int(0)
203+
204+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
175205
bool(false)
176206
int(0)
177207
bool(false)
178208
int(2)
209+
210+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
179211
bool(false)
180212
int(2)
181213
bool(false)
@@ -184,10 +216,14 @@ int(1024)
184216
string(32) "b09c8026a64a88d36d4c2f17983964bb"
185217
-- Opening file in rt --
186218
int(0)
219+
220+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
187221
bool(false)
188222
int(0)
189223
bool(false)
190224
int(2)
225+
226+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
191227
bool(false)
192228
int(2)
193229
bool(false)
@@ -198,10 +234,14 @@ string(32) "b09c8026a64a88d36d4c2f17983964bb"
198234
-- Testing fwrite() with file having content of type alphanumeric --
199235
-- Opening file in r --
200236
int(0)
237+
238+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
201239
bool(false)
202240
int(0)
203241
bool(false)
204242
int(2)
243+
244+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
205245
bool(false)
206246
int(2)
207247
bool(false)
@@ -210,10 +250,14 @@ int(1024)
210250
string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
211251
-- Opening file in rb --
212252
int(0)
253+
254+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
213255
bool(false)
214256
int(0)
215257
bool(false)
216258
int(2)
259+
260+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
217261
bool(false)
218262
int(2)
219263
bool(false)
@@ -222,10 +266,14 @@ int(1024)
222266
string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
223267
-- Opening file in rt --
224268
int(0)
269+
270+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
225271
bool(false)
226272
int(0)
227273
bool(false)
228274
int(2)
275+
276+
Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
229277
bool(false)
230278
int(2)
231279
bool(false)

0 commit comments

Comments
 (0)