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