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--FILE-- 9<?php 10 11$bug73457=true; 12require __DIR__ . "/../../../ftp/tests/server.inc"; 13 14$path="ftp://127.0.0.1:" . $port."/bug73457"; 15 16$ds=file_get_contents($path); 17var_dump($ds); 18?> 19--EXPECTF-- 20Warning: file_get_contents(ftp://127.0.0.1:%d/bug73457): Failed to open stream: Failed to set up data channel: Connection refused in %s on line %d 21bool(false) 22