mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
22 lines
410 B
Plaintext
22 lines
410 B
Plaintext
|
--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'));
|
||
|
|
||
|
?>
|
||
|
--EXPECTREGEX--
|
||
|
bool\(true\)
|
||
|
string\(\d+\) ".+[\/\\]CVS"
|