--TEST-- RarEntry::extract() method (corrupt RAR file) --SKIPIF-- --FILE-- = 4) break; echo "Extraction of file #$i:\n"; $ret = $e->extract(false, dirname(__FILE__).'/temp.txt'); if ($ret) echo "\tSUCCESS\n"; else echo "\tFAILED\n"; echo "\n"; } @unlink(dirname(__FILE__).'/temp.txt'); echo "Done\n"; ?> --EXPECTF-- 51 files (will test only the first 4): Extraction of file #1: SUCCESS Extraction of file #2: Warning: RarEntry::extract(): ERAR_BAD_DATA in %s on line %d FAILED Extraction of file #3: Warning: RarEntry::extract(): ERAR_BAD_DATA in %s on line %d FAILED Extraction of file #4: Warning: RarEntry::extract(): ERAR_BAD_DATA in %s on line %d FAILED Done