관리-도구
편집 파일: 113.phpt
--TEST-- RarEntry::isEncrypted() --SKIPIF-- <?php if(!extension_loaded("rar")) die("skip"); --FILE-- <?php $a = rar_open(dirname(__FILE__) . '/rar5-links.rar'); $e = $a->getEntry('file1.txt'); var_dump($e->isEncrypted()); $a = rar_open(dirname(__FILE__) . '/encrypted_only_files.rar'); $e = $a->getEntry('encfile1.txt'); var_dump($e->isEncrypted()); echo "Done.\n"; --EXPECTF-- bool(false) bool(true) Done.