Files
cataphract dadab995f5 Directory streams and url stat implemented.
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
2010-05-04 17:17:01 +00:00

22 lines
337 B
PHP

--TEST--
RAR file stream stat consistency with url stat
--SKIPIF--
<?php
if(!extension_loaded("rar")) die("skip");
--FILE--
<?php
$u = "rar://" .
dirname(__FILE__) . '/latest_winrar.rar' .
"#1.txt";
$stream = fopen($u, "r");
$fs = (fstat($stream));
$us = stat($u);
var_dump($fs == $us);
echo "Done.\n";
--EXPECTF--
bool(true)
Done.