Annotation of embedaddon/php/ext/standard/tests/file/realpath_cache_win32.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: realpath_cache_size() and realpath_cache_get()
3: --SKIPIF--
4: <?php
5: if (substr(PHP_OS, 0, 3) != 'WIN') {
6: die('skip only on Windows');
7: }
8: ?>
9: --FILE--
10: <?php
11:
12: var_dump(realpath_cache_size());
13: $data = realpath_cache_get();
14: var_dump($data[__DIR__]);
15:
16: echo "Done\n";
17: ?>
18: --EXPECTF--
19: int(%d)
20: array(8) {
21: ["key"]=>
1.1.1.2 ! misho 22: %s(%d)
1.1 misho 23: ["is_dir"]=>
24: bool(true)
25: ["realpath"]=>
26: string(%d) "%sfile"
27: ["expires"]=>
28: int(%d)
29: ["is_rvalid"]=>
30: bool(%s)
31: ["is_wvalid"]=>
32: bool(%s)
33: ["is_readable"]=>
34: bool(%s)
35: ["is_writable"]=>
36: bool(%s)
37: }
38: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>