Annotation of embedaddon/php/ext/standard/tests/file/realpath_cache.phpt, revision 1.1
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 not 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(4) {
! 21: ["key"]=>
! 22: int(%i)
! 23: ["is_dir"]=>
! 24: bool(true)
! 25: ["realpath"]=>
! 26: string(%d) "%sfile"
! 27: ["expires"]=>
! 28: int(%d)
! 29: }
! 30: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>