1--TEST-- 2Bug #37799 (ftp_ssl_connect() falls back to non-ssl connection) 3--EXTENSIONS-- 4ftp 5pcntl 6openssl 7--SKIPIF-- 8<?php 9if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled"); 10?> 11--FILE-- 12<?php 13$bug37799=$ssl=1; 14require 'server.inc'; 15 16$ftp = ftp_ssl_connect('127.0.0.1', $port); 17if (!$ftp) die("Couldn't connect to the server"); 18 19var_dump(ftp_login($ftp, 'user', 'pass')); 20 21ftp_close($ftp); 22?> 23--EXPECTF-- 24Warning: ftp_login(): %rdummy|bogus msg%r in %sbug37799.php on line 8 25bool(false) 26