mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-23 12:28:05 +02:00
dadab995f5
Exposed UnRAR DLL API version in MINFO. Refactoring and a few other minor changes. git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@298980 c90b9560-bf6c-de11-be94-00142212c4b1
28 lines
727 B
PHP
28 lines
727 B
PHP
--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): failed 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): failed to open stream: Can't file not_found.txt in RAR archive %s on line %d
|
|
Done. |