mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-03-24 21:12:06 +01:00
- RAR navigation and indexing were moved to rar_navigation.c. - RAR archives that contain entries with the same name are correctly handled. - Changed the way properties are accessed in RarEntry (does not require building the properties table in trunk). - Fixed memory leak in silent url stat. - Fixed handling of optional passwords. Now giving no password, NULL or '' result in the same behavior. git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@299926 c90b9560-bf6c-de11-be94-00142212c4b1
18 lines
302 B
PHP
18 lines
302 B
PHP
--TEST--
|
|
URL stat PHP_STREAM_URL_STAT_QUIET does not leak memory
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded("rar")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$file = "rar://" .
|
|
dirname(__FILE__) . '/dirlink_unix.rar' .
|
|
"#non_existant_file";
|
|
|
|
var_dump(is_dir($file));
|
|
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
bool(false)
|
|
Done.
|