mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Enable further tests on Windows
This commit is contained in:
commit
7e357f470d
5 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,5 @@
|
|||
--TEST--
|
||||
parse_ini_file() multiple calls
|
||||
--SKIPIF--
|
||||
<?php if( substr(PHP_OS, 0, 3) == 'WIN' ) die("skip Windows has different error message");?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
Streams Based IPv6 TCP Loopback test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
/* If IPv6 is supported on the platform this will error out with code 111 - Connection refused.
|
||||
/* If IPv6 is supported on the platform this will error out with code 111 - Connection refused (or code 10049 on Windows).
|
||||
If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error)
|
||||
Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/sockets) */
|
||||
@stream_socket_client('tcp://[::1]:0', $errno);
|
||||
if ($errno != 111) die('skip IPv6 not supported.');
|
||||
if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) {
|
||||
die('skip IPv6 is not supported.');
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
|
|
@ -3,7 +3,7 @@ Streams Based IPv6 UDP Loopback test
|
|||
--SKIPIF--
|
||||
<?php
|
||||
/* If IPv6 is supported on the platform this will error out with code 111 -
|
||||
* Connection refused. If IPv6 is NOT supported, $errno will be set to
|
||||
* Connection refused (or code 10049 on Windows). If IPv6 is NOT supported, $errno will be set to
|
||||
* something else (indicating parse/getaddrinfo error)
|
||||
* Note: Might be a good idea to export an IPv6 support indicator
|
||||
* (such as AF_INET6 exported by ext/sockets), however, since we
|
||||
|
@ -12,7 +12,9 @@ Streams Based IPv6 UDP Loopback test
|
|||
*/
|
||||
|
||||
@stream_socket_client('tcp://[::1]:0', $errno);
|
||||
if ($errno != 111) die('skip IPv6 not supported.');
|
||||
if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) {
|
||||
die('skip IPv6 is not supported.');
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
|
|
@ -3,7 +3,7 @@ Bug #76136: stream_socket_get_name should enclose IPv6 in brackets
|
|||
--SKIPIF--
|
||||
<?php
|
||||
@stream_socket_client('tcp://[::1]:0', $errno);
|
||||
if ($errno != 111) {
|
||||
if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) {
|
||||
die('skip IPv6 is not supported.');
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
--TEST--
|
||||
Bug #24098 (pathinfo() crash)
|
||||
--SKIPIF--
|
||||
<?php if (DIRECTORY_SEPARATOR == '\\') die("skip directory separator won't match expected output"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(pathinfo("/dsds.asa"));
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
array(4) {
|
||||
["dirname"]=>
|
||||
string(1) "/"
|
||||
string(1) "%e"
|
||||
["basename"]=>
|
||||
string(8) "dsds.asa"
|
||||
["extension"]=>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue