php-src/ext/ftp/tests/bug7216-2.phpt

22 lines
409 B
Plaintext
Raw Normal View History

2006-11-23 20:47:38 +00:00
--TEST--
Bug #7216: ftp_mkdir returns nothing (2)
--SKIPIF--
<?php
require 'skipif.inc';
?>
--FILE--
<?php
require 'server.inc';
$ftp = ftp_connect('127.0.0.1', $port);
if (!$ftp) die("Couldn't connect to the server");
var_dump(ftp_login($ftp, 'anonymous', 'IEUser@'));
// test for the correct behavior this time
var_dump(ftp_mkdir($ftp, 'CVS'));
?>
--EXPECT--
bool(true)
string(20) "/path/to/ftproot/CVS"