Fixed caching final results in chgrp example.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308663 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Shein Alexey 2011-02-25 11:05:23 +00:00
parent 8836adc497
commit 3de058b030

View file

@ -66,6 +66,7 @@ $filename = 'shared_file.txt';
$format = "%s's Group ID @ %s: %d\n";
printf($format, $filename, date('r'), filegroup($filename));
chgrp($filename, 8);
clearstatcache(); // do not cache filegroup() results
printf($format, $filename, date('r'), filegroup($filename));
?>
]]>