mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-24 04:48: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
22 lines
337 B
PHP
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.
|