File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
curl_multi_setopt basic test
3
3
--SKIPIF--
4
+ <?php
4
5
if (!extension_loaded ("curl " )) {
5
6
exit ("skip curl extension not loaded " );
6
7
}
7
8
$ curl_version = curl_version ();
8
9
if ($ curl_version ['version_number ' ] < 0x071000 ) {
9
10
exit ("skip: test works only with curl >= 7.16.0 " );
10
11
}
12
+ ?>
11
13
--FILE--
12
14
<?php
13
15
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
curl_multi_strerror basic test
3
3
--SKIPIF--
4
+ <?php
4
5
if (!extension_loaded ("curl " )) {
5
6
exit ("skip curl extension not loaded " );
6
7
}
7
8
$ curl_version = curl_version ();
8
9
if ($ curl_version ['version_number ' ] < 0x070c00 ) {
9
10
exit ("skip: test works only with curl >= 7.12.0 " );
10
11
}
12
+ ?>
11
13
--FILE--
12
14
<?php
13
15
14
- var_dump (curl_multi_strerror (CURLM_OK ));
15
- var_dump (curl_multi_strerror (CURLM_BAD_HANDLE ));
16
+ var_dump (strtolower ( curl_multi_strerror (CURLM_OK ) ));
17
+ var_dump (strtolower ( curl_multi_strerror (CURLM_BAD_HANDLE ) ));
16
18
17
19
?>
18
20
--EXPECTF--
19
- string(8) "No error"
20
- string(20) "Invalid multi handle"
21
+ string(8) "no error"
22
+ string(20) "invalid multi handle"
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
curl_share_setopt basic test
3
3
--SKIPIF--
4
+ <?php
4
5
if (!extension_loaded ("curl " )) {
5
6
exit ("skip curl extension not loaded " );
6
7
}
8
+ ?>
7
9
--FILE--
8
10
<?php
9
11
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
curl_strerror basic test
3
3
--SKIPIF--
4
+ <?php
4
5
if (!extension_loaded ("curl " )) {
5
6
exit ("skip curl extension not loaded " );
6
7
}
7
8
$ curl_version = curl_version ();
8
9
if ($ curl_version ['version_number ' ] < 0x070c00 ) {
9
10
exit ("skip: test works only with curl >= 7.12.0 " );
10
11
}
12
+ ?>
11
13
--FILE--
12
14
<?php
13
15
14
- var_dump (curl_strerror (CURLE_OK ));
15
- var_dump (curl_strerror (CURLE_UNSUPPORTED_PROTOCOL ));
16
- var_dump (curl_strerror (-1 ));
16
+ var_dump (strtolower ( curl_strerror (CURLE_OK ) ));
17
+ var_dump (strtolower ( curl_strerror (CURLE_UNSUPPORTED_PROTOCOL ) ));
18
+ var_dump (strtolower ( curl_strerror (-1 ) ));
17
19
18
20
?>
19
21
--EXPECTF--
20
- string(8) "No error"
21
- string(20) "Unsupported protocol"
22
- string(13) "Unknown error"
22
+ string(8) "no error"
23
+ string(20) "unsupported protocol"
24
+ string(13) "unknown error"
You can’t perform that action at this time.
0 commit comments