]> granicus.if.org Git - php/commitdiff
test case for statcache corruption of BG
authorWez Furlong <wez@php.net>
Mon, 23 Feb 2004 21:07:10 +0000 (21:07 +0000)
committerWez Furlong <wez@php.net>
Mon, 23 Feb 2004 21:07:10 +0000 (21:07 +0000)
ext/standard/tests/file/statcache-corruption.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/file/statcache-corruption.phpt b/ext/standard/tests/file/statcache-corruption.phpt
new file mode 100644 (file)
index 0000000..7fa3916
--- /dev/null
@@ -0,0 +1,13 @@
+--TEST--
+statcache corruption
+--FILE--
+<?php
+$a = stat(__FILE__);
+is_link(__FILE__);
+$b = stat(__FILE__);
+print_r(array_diff($a, $b));
+?>
+--EXPECT--
+Array
+(
+)