File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file / mkdir-001.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:08 2013 UTC (11 years, 3 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--
mkdir() tests
--FILE--
<?php

var_dump(mkdir("mkdir-001"));
var_dump(mkdir("mkdir-001/subdir"));
var_dump(rmdir("mkdir-001/subdir"));
var_dump(rmdir("mkdir-001"));

var_dump(mkdir("./mkdir-001"));
var_dump(mkdir("./mkdir-001/subdir"));
var_dump(rmdir("./mkdir-001/subdir"));
var_dump(rmdir("./mkdir-001"));

var_dump(mkdir(dirname(__FILE__)."/mkdir-001"));
var_dump(mkdir(dirname(__FILE__)."/mkdir-001/subdir"));
var_dump(rmdir(dirname(__FILE__)."/mkdir-001/subdir"));
var_dump(rmdir(dirname(__FILE__)."/mkdir-001"));

echo "Done\n";
?>
--EXPECTF--	
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>