--TEST--
parse_ini_file() multiple calls
---SKIPIF--
-<?php if( substr(PHP_OS, 0, 3) == 'WIN' ) die("skip Windows has different error message");?>
--FILE--
<?php
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
--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
*/
@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
--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.');
}
?>
--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"]=>