Skip to content

Commit 2a7d8c0

Browse files
committed
fix tests
1 parent e7051cb commit 2a7d8c0

File tree

4 files changed

+52
-52
lines changed

4 files changed

+52
-52
lines changed

ext/standard/tests/file/stream_rfc2397_002.phpt

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ foreach($streams as $stream)
3434
<?php exit(0); ?>
3535
--EXPECTF--
3636
array(7) {
37+
["base64"]=>
38+
bool(false)
3739
["wrapper_type"]=>
3840
string(7) "RFC2397"
3941
["stream_type"]=>
@@ -46,15 +48,15 @@ array(7) {
4648
bool(true)
4749
["uri"]=>
4850
string(8) "data://,"
49-
["base64"]=>
50-
bool(false)
5151
}
5252
NULL
5353

5454
Warning: fopen(data://): failed to open stream: rfc2397: no comma in URL in %sstream_rfc2397_002.php on line %d
5555
NULL
5656
NULL
5757
array(7) {
58+
["base64"]=>
59+
bool(true)
5860
["wrapper_type"]=>
5961
string(7) "RFC2397"
6062
["stream_type"]=>
@@ -67,8 +69,6 @@ array(7) {
6769
bool(true)
6870
["uri"]=>
6971
string(15) "data://;base64,"
70-
["base64"]=>
71-
bool(true)
7272
}
7373
NULL
7474

@@ -84,6 +84,10 @@ Warning: fopen(data://foo=bar,): failed to open stream: rfc2397: illegal media t
8484
NULL
8585
NULL
8686
array(8) {
87+
["mediatype"]=>
88+
string(10) "text/plain"
89+
["base64"]=>
90+
bool(false)
8791
["wrapper_type"]=>
8892
string(7) "RFC2397"
8993
["stream_type"]=>
@@ -96,17 +100,19 @@ array(8) {
96100
bool(true)
97101
["uri"]=>
98102
string(18) "data://text/plain,"
99-
["mediatype"]=>
100-
string(10) "text/plain"
101-
["base64"]=>
102-
bool(false)
103103
}
104104
NULL
105105

106106
Warning: fopen(data://text/plain;foo,): failed to open stream: rfc2397: illegal parameter in %sstream_rfc2397_002.php on line %d
107107
NULL
108108
NULL
109109
array(9) {
110+
["mediatype"]=>
111+
string(10) "text/plain"
112+
["foo"]=>
113+
string(3) "bar"
114+
["base64"]=>
115+
bool(false)
110116
["wrapper_type"]=>
111117
string(7) "RFC2397"
112118
["stream_type"]=>
@@ -119,19 +125,19 @@ array(9) {
119125
bool(true)
120126
["uri"]=>
121127
string(26) "data://text/plain;foo=bar,"
122-
["mediatype"]=>
123-
string(10) "text/plain"
124-
["foo"]=>
125-
string(3) "bar"
126-
["base64"]=>
127-
bool(false)
128128
}
129129
string(3) "bar"
130130

131131
Warning: fopen(data://text/plain;foo=bar;bla,): failed to open stream: rfc2397: illegal parameter in %sstream_rfc2397_002.php on line %d
132132
NULL
133133
NULL
134134
array(9) {
135+
["mediatype"]=>
136+
string(10) "text/plain"
137+
["foo"]=>
138+
string(3) "bar"
139+
["base64"]=>
140+
bool(true)
135141
["wrapper_type"]=>
136142
string(7) "RFC2397"
137143
["stream_type"]=>
@@ -144,19 +150,21 @@ array(9) {
144150
bool(true)
145151
["uri"]=>
146152
string(33) "data://text/plain;foo=bar;base64,"
147-
["mediatype"]=>
148-
string(10) "text/plain"
149-
["foo"]=>
150-
string(3) "bar"
151-
["base64"]=>
152-
bool(true)
153153
}
154154
string(3) "bar"
155155

156156
Warning: fopen(data://text/plain;foo=bar;bar=baz): failed to open stream: rfc2397: no comma in URL in %sstream_rfc2397_002.php on line %d
157157
NULL
158158
NULL
159159
array(10) {
160+
["mediatype"]=>
161+
string(10) "text/plain"
162+
["foo"]=>
163+
string(3) "bar"
164+
["bar"]=>
165+
string(3) "baz"
166+
["base64"]=>
167+
bool(false)
160168
["wrapper_type"]=>
161169
string(7) "RFC2397"
162170
["stream_type"]=>
@@ -169,14 +177,6 @@ array(10) {
169177
bool(true)
170178
["uri"]=>
171179
string(34) "data://text/plain;foo=bar;bar=baz,"
172-
["mediatype"]=>
173-
string(10) "text/plain"
174-
["foo"]=>
175-
string(3) "bar"
176-
["bar"]=>
177-
string(3) "baz"
178-
["base64"]=>
179-
bool(false)
180180
}
181181
string(3) "bar"
182182
===DONE===

ext/standard/tests/network/socket_get_status_basic.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ fclose($server);
1818
?>
1919
--EXPECTF--
2020
array(7) {
21+
["timed_out"]=>
22+
bool(false)
23+
["blocked"]=>
24+
bool(true)
25+
["eof"]=>
26+
bool(false)
2127
["stream_type"]=>
2228
string(%d) "tcp_socket%S"
2329
["mode"]=>
@@ -26,10 +32,4 @@ array(7) {
2632
int(0)
2733
["seekable"]=>
2834
bool(false)
29-
["timed_out"]=>
30-
bool(false)
31-
["blocked"]=>
32-
bool(true)
33-
["eof"]=>
34-
bool(false)
3535
}

ext/zip/tests/stream_meta_data.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ fclose($fp);
3535
?>
3636
--EXPECTF--
3737
array(8) {
38+
["timed_out"]=>
39+
bool(false)
40+
["blocked"]=>
41+
bool(true)
42+
["eof"]=>
43+
bool(false)
3844
["stream_type"]=>
3945
string(3) "zip"
4046
["mode"]=>
@@ -45,14 +51,14 @@ array(8) {
4551
bool(false)
4652
["uri"]=>
4753
string(3) "foo"
54+
}
55+
array(9) {
4856
["timed_out"]=>
4957
bool(false)
5058
["blocked"]=>
5159
bool(true)
5260
["eof"]=>
5361
bool(false)
54-
}
55-
array(9) {
5662
["wrapper_type"]=>
5763
string(11) "zip wrapper"
5864
["stream_type"]=>
@@ -65,10 +71,4 @@ array(9) {
6571
bool(false)
6672
["uri"]=>
6773
string(%d) "zip://%stest_with_comment.zip#foo"
68-
["timed_out"]=>
69-
bool(false)
70-
["blocked"]=>
71-
bool(true)
72-
["eof"]=>
73-
bool(false)
7474
}

ext/zlib/tests/zlib_wrapper_meta_data_basic.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ gzclose($h);
2525
--EXPECTF--
2626
no wrapper
2727
array(7) {
28+
["timed_out"]=>
29+
bool(false)
30+
["blocked"]=>
31+
bool(true)
32+
["eof"]=>
33+
bool(false)
2834
["stream_type"]=>
2935
string(4) "ZLIB"
3036
["mode"]=>
@@ -33,16 +39,16 @@ array(7) {
3339
int(0)
3440
["seekable"]=>
3541
bool(true)
42+
}
43+
44+
with wrapper
45+
array(9) {
3646
["timed_out"]=>
3747
bool(false)
3848
["blocked"]=>
3949
bool(true)
4050
["eof"]=>
4151
bool(false)
42-
}
43-
44-
with wrapper
45-
array(9) {
4652
["wrapper_type"]=>
4753
string(4) "ZLIB"
4854
["stream_type"]=>
@@ -55,11 +61,5 @@ array(9) {
5561
bool(true)
5662
["uri"]=>
5763
string(%d) "compress.zlib://%s/004.txt.gz"
58-
["timed_out"]=>
59-
bool(false)
60-
["blocked"]=>
61-
bool(true)
62-
["eof"]=>
63-
bool(false)
6464
}
6565
===DONE===

0 commit comments

Comments
 (0)