xref: /PHP-5.3/ext/ftp/tests/bug37799.phpt (revision 1f655451)
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(): bogus msg in %sbug37799.php on line 8
22bool(false)
23