|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-26 13:46 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2016-08-26 13:46 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ After opening a symlink, PHP will always use the original link location, even if the link is externally modified during script execution. Test script: --------------- <?php file_put_contents("linkOrig", "old data"); file_put_contents("linkNew", "new data"); //create the link symlink("linkOrig", "link"); //`ln -s linkOrig link`;//this also works file_get_contents("link");//open it and read it (caches the link data) //simulate another program altering it `ln -fs linkNew link`; echo file_get_contents("link"); Expected result: ---------------- new data Actual result: -------------- old data