1--TEST--
2Bug #73457. Wrong error message when fopen FTP wrapped fails to open data connection
3--SKIPIF--
4<?php
5if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
6if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
7?>
8--INI--
9default_socket_timeout=1
10--FILE--
11<?php
12
13$bug73457=true;
14require __DIR__ . "/../../../ftp/tests/server.inc";
15
16$path="ftp://127.0.0.1:" . $port."/bug73457";
17
18$ds=file_get_contents($path);
19var_dump($ds);
20?>
21--EXPECTF--
22Warning: file_get_contents(ftp://127.0.0.1:%d/bug73457): Failed to open stream: Failed to set up data channel: %s in %s on line %d
23bool(false)
24