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
31 lines
503 B
PHP
31 lines
503 B
PHP
--TEST--
|
|
RAR directory stream stat consistency with url stat
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded("rar")) die("skip");
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "Root:\n";
|
|
|
|
$u = "rar://" .
|
|
dirname(__FILE__) . '/dirs_and_extra_headers.rar';
|
|
|
|
var_dump(fstat(opendir($u)) == stat($u));
|
|
|
|
echo "\nSub-root directory:\n";
|
|
|
|
$u = "rar://" .
|
|
dirname(__FILE__) . '/dirs_and_extra_headers.rar#%EF%AC%B0';
|
|
|
|
var_dump(fstat(opendir($u)) == stat($u));
|
|
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
Root:
|
|
bool(true)
|
|
|
|
Sub-root directory:
|
|
bool(true)
|
|
Done.
|