--TEST-- RarEntry::extract() process extended (Windows) --SKIPIF-- --CLEAN-- @rmdir(dirname(__FILE__).'/temp_directory'); --FILE-- should have default permissions:\n"; $rarF = RarArchive::open($fn1); $t = $rarF->getEntry('allow_everyone_ni'); $t->extract(false, $dest, NULL); exec('cacls ' . escapeshellarg($dest), $perms); $perms = array_reduce($perms, 'concat'); var_dump(preg_match('/.* Everyone:\\(OI\\)\\(CI\\)F/i', $perms)); @rmdir($dest); echo "\n"; echo "--> should have permissions for everyone:\n"; $rarF = RarArchive::open($fn1); $t = $rarF->getEntry('allow_everyone_ni'); $t->extract(false, $dest, NULL, true); exec('cacls ' . escapeshellarg($dest), $perms); $perms = array_reduce($perms, 'concat'); var_dump(preg_match('/.* Everyone:\\(OI\\)\\(CI\\)F/i', $perms)); echo "\n"; @rmdir($dest); echo "Done\n"; --EXPECTF-- --> should have default permissions: int(0) --> should have permissions for everyone: int(1) Done