Viewing File: /opt/alt/tests/alt-php81-pecl-rar_4.2.0-1.el8/tests/052.phpt

--TEST--
Stream wrapper archive/file not found
--SKIPIF--
<?php
if(!extension_loaded("rar")) die("skip");
--FILE--
<?php

echo "Archive not found :\n";
$stream = fopen("rar://" .
	dirname(__FILE__) . "/not_found.rar" .
	"#1.txt", "r");

echo "\nFile not found :\n";
$stream = fopen("rar://" .
	dirname(__FILE__) . "/latest_winrar.rar" .
	"#not_found.txt", "r");

echo "Done.\n";
--EXPECTF--
Archive not found :

Warning: fopen(rar://%snot_found.rar#1.txt): %cailed to open stream: Error opening RAR archive %snot_found.rar: ERAR_EOPEN (file open error) in %s on line %d

File not found :

Warning: fopen(rar://%slatest_winrar.rar#not_found.txt): %cailed to open stream: Can't file not_found.txt in RAR archive %s on line %d
Done.
Back to Directory File Manager
<