php-src/ext/standard/tests/file/realpath_cache.phpt

31 lines
425 B
Plaintext
Raw Normal View History

2009-12-08 01:35:08 +00:00
--TEST--
realpath_cache_size() and realpath_cache_get()
2009-12-08 01:52:57 +00:00
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip not on Windows');
}
?>
2009-12-08 01:35:08 +00:00
--FILE--
<?php
var_dump(realpath_cache_size());
$data = realpath_cache_get();
var_dump($data[__DIR__]);
echo "Done\n";
?>
--EXPECTF--
int(%d)
array(4) {
["key"]=>
2010-03-24 21:57:30 +00:00
int(%i)
2009-12-08 01:35:08 +00:00
["is_dir"]=>
bool(true)
["realpath"]=>
string(%d) "%sfile"
["expires"]=>
int(%d)
}
Done