From: Hannes Magnusson Date: Sun, 5 Jun 2011 12:08:14 +0000 (+0000) Subject: When you write to a symlink - you access the file itself, not the symlink, so we... X-Git-Tag: php-5.4.0alpha1~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eed6bdb5c7f0524867a80db73757a2d4b2486f41;p=php When you write to a symlink - you access the file itself, not the symlink, so we need to compare the atime to the orignal file --- diff --git a/ext/standard/tests/file/lstat_stat_variation6.phpt b/ext/standard/tests/file/lstat_stat_variation6.phpt index b7913e0b34..8704c6d7c6 100755 --- a/ext/standard/tests/file/lstat_stat_variation6.phpt +++ b/ext/standard/tests/file/lstat_stat_variation6.phpt @@ -47,7 +47,7 @@ clearstatcache(); var_dump( touch($link_name) ); -$new_stat = lstat($link_name); +$new_stat = stat($file_name); // compare self stats var_dump( compare_self_stat($old_stat) );