stas Tue, 08 Dec 2009 01:52:57 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291849
Log: win32 should have different test Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache.phpt A php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache_win32.phpt U php/php-src/trunk/ext/standard/tests/file/realpath_cache.phpt A php/php-src/trunk/ext/standard/tests/file/realpath_cache_win32.phpt Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache.phpt 2009-12-08 01:51:34 UTC (rev 291848) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache.phpt 2009-12-08 01:52:57 UTC (rev 291849) @@ -1,5 +1,11 @@ --TEST-- realpath_cache_size() and realpath_cache_get() +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') { + die('skip not on Windows'); +} +?> --FILE-- <?php Added: php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache_win32.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache_win32.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/realpath_cache_win32.phpt 2009-12-08 01:52:57 UTC (rev 291849) @@ -0,0 +1,38 @@ +--TEST-- +realpath_cache_size() and realpath_cache_get() +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) != 'WIN') { + die('skip only on Windows'); +} +?> +--FILE-- +<?php + +var_dump(realpath_cache_size()); +$data = realpath_cache_get(); +var_dump($data[__DIR__]); + +echo "Done\n"; +?> +--EXPECTF-- +int(%d) +array(8) { + ["key"]=> + int(%d) + ["is_dir"]=> + bool(true) + ["realpath"]=> + string(%d) "%sfile" + ["expires"]=> + int(%d) + ["is_rvalid"]=> + bool(%s) + ["is_wvalid"]=> + bool(%s) + ["is_readable"]=> + bool(%s) + ["is_writable"]=> + bool(%s) +} +Done Modified: php/php-src/trunk/ext/standard/tests/file/realpath_cache.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/file/realpath_cache.phpt 2009-12-08 01:51:34 UTC (rev 291848) +++ php/php-src/trunk/ext/standard/tests/file/realpath_cache.phpt 2009-12-08 01:52:57 UTC (rev 291849) @@ -1,5 +1,11 @@ --TEST-- realpath_cache_size() and realpath_cache_get() +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') { + die('skip not on Windows'); +} +?> --FILE-- <?php Added: php/php-src/trunk/ext/standard/tests/file/realpath_cache_win32.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/file/realpath_cache_win32.phpt (rev 0) +++ php/php-src/trunk/ext/standard/tests/file/realpath_cache_win32.phpt 2009-12-08 01:52:57 UTC (rev 291849) @@ -0,0 +1,38 @@ +--TEST-- +realpath_cache_size() and realpath_cache_get() +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) != 'WIN') { + die('skip only on Windows'); +} +?> +--FILE-- +<?php + +var_dump(realpath_cache_size()); +$data = realpath_cache_get(); +var_dump($data[__DIR__]); + +echo "Done\n"; +?> +--EXPECTF-- +int(%d) +array(8) { + ["key"]=> + int(%d) + ["is_dir"]=> + bool(true) + ["realpath"]=> + string(%d) "%sfile" + ["expires"]=> + int(%d) + ["is_rvalid"]=> + bool(%s) + ["is_wvalid"]=> + bool(%s) + ["is_readable"]=> + bool(%s) + ["is_writable"]=> + bool(%s) +} +Done
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php