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