Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 503 Bytes
--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.