File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
parse_ini_file() multiple calls
3
- --SKIPIF--
4
- <?php if ( substr (PHP_OS , 0 , 3 ) == 'WIN ' ) die ("skip Windows has different error message " );?>
5
3
--FILE--
6
4
<?php
7
5
Original file line number Diff line number Diff line change 2
2
Streams Based IPv6 TCP Loopback test
3
3
--SKIPIF--
4
4
<?php
5
- /* If IPv6 is supported on the platform this will error out with code 111 - Connection refused.
5
+ /* If IPv6 is supported on the platform this will error out with code 111 - Connection refused (or code 10049 on Windows) .
6
6
If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error)
7
7
Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/sockets) */
8
8
@stream_socket_client ('tcp://[::1]:0 ' , $ errno );
9
- if ($ errno != 111 ) die ('skip IPv6 not supported. ' );
9
+ if ((PHP_OS_FAMILY === 'Windows ' && $ errno !== 10049 ) || (PHP_OS_FAMILY !== 'Windows ' && $ errno !== 111 )) {
10
+ die ('skip IPv6 is not supported. ' );
11
+ }
10
12
?>
11
13
--FILE--
12
14
<?php
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Streams Based IPv6 UDP Loopback test
3
3
--SKIPIF--
4
4
<?php
5
5
/* If IPv6 is supported on the platform this will error out with code 111 -
6
- * Connection refused. If IPv6 is NOT supported, $errno will be set to
6
+ * Connection refused (or code 10049 on Windows) . If IPv6 is NOT supported, $errno will be set to
7
7
* something else (indicating parse/getaddrinfo error)
8
8
* Note: Might be a good idea to export an IPv6 support indicator
9
9
* (such as AF_INET6 exported by ext/sockets), however, since we
@@ -12,7 +12,9 @@ Streams Based IPv6 UDP Loopback test
12
12
*/
13
13
14
14
@stream_socket_client ('tcp://[::1]:0 ' , $ errno );
15
- if ($ errno != 111 ) die ('skip IPv6 not supported. ' );
15
+ if ((PHP_OS_FAMILY === 'Windows ' && $ errno !== 10049 ) || (PHP_OS_FAMILY !== 'Windows ' && $ errno !== 111 )) {
16
+ die ('skip IPv6 is not supported. ' );
17
+ }
16
18
?>
17
19
--FILE--
18
20
<?php
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Bug #76136: stream_socket_get_name should enclose IPv6 in brackets
3
3
--SKIPIF--
4
4
<?php
5
5
@stream_socket_client ('tcp://[::1]:0 ' , $ errno );
6
- if ($ errno != 111 ) {
6
+ if (( PHP_OS_FAMILY === ' Windows ' && $ errno !== 10049 ) || ( PHP_OS_FAMILY !== ' Windows ' && $ errno !== 111 ) ) {
7
7
die ('skip IPv6 is not supported. ' );
8
8
}
9
9
?>
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Bug #24098 (pathinfo() crash)
3
- --SKIPIF--
4
- <?php if (DIRECTORY_SEPARATOR == '\\' ) die ("skip directory separator won't match expected output " ); ?>
5
3
--FILE--
6
4
<?php
7
5
var_dump (pathinfo ("/dsds.asa " ));
8
6
?>
9
- --EXPECT --
7
+ --EXPECTF --
10
8
array(4) {
11
9
["dirname"]=>
12
- string(1) "/ "
10
+ string(1) "%e "
13
11
["basename"]=>
14
12
string(8) "dsds.asa"
15
13
["extension"]=>
You can’t perform that action at this time.
0 commit comments