--TEST-- Phar: Phar::extractTo() - check that phar exists --SKIPIF-- --INI-- phar.readonly=0 --FILE-- extractTo($extract); } catch (Exception $e) { echo $e->getMessage(), "\n"; } $phar = new PharData($fname2); foreach ($phar as $filename) { echo "$filename\n"; } try { $phar->extractTo($extract); } catch (Exception $e) { echo $e->getMessage(), "\n"; } ?> ===DONE=== --CLEAN-- --EXPECTF-- Invalid argument, %sfiles/bogus.zip cannot be found phar://%sfiles/notbogus.zip%cnonsense.txt phar://%sfiles/notbogus.zip%cstuff.txt ===DONE===