--TEST-- Phar: rmdir test --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 detect_unicode=0 --FILE-- "; $files = array(); $files['a/x'] = 'a'; include 'files/phar_test.inc'; include $fname; echo file_get_contents($pname . '/a/x') . "\n"; var_dump(rmdir($pname . '/a')); echo file_get_contents($pname . '/a/x') . "\n"; unlink($pname . '/a/x'); var_dump(rmdir($pname . '/a')); ?> --CLEAN-- --EXPECTF-- a Warning: rmdir(): phar error: Directory not empty in %srmdir.php on line 14 bool(false) a bool(true)