note 124182 added to class.recursivedirectoryiterator

From: Date: Mon, 09 Sep 2019 20:54:58 +0000
Subject: note 124182 added to class.recursivedirectoryiterator
Groups: php.notes 
Request: Send a blank email to php-notes+get-212162@lists.php.net to get a copy of this message
When using the option FilesystemIterator::FOLLOW_SYMLINKS if there is a symlink to an upper directory there is a loop so we end up with repeated directories. For example (having a -> ../ ): /c /c/.. /c/a /c/a/c /c/a/c/.. /c/a/c/a /c/a/c/a/c ... (up to 40 x /c/a ) /c/a/c/a/.. /c/a/c/a/. /c/a/c/. /c/a/.. /c/a/. /c/. /.. /. Apparently there is a limit to avoid having an infinite loop. I don't know documentation for this. It would be interesting to have an option to allow following symlinks without loops. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.168 (proxied: 2001:8a0:56d7:c700:ad92:dc6d:64f5:94cc) ---- Manual Page -- http://php.net/manual/en/class.recursivedirectoryiterator.php Edit -- https://master.php.net/note/edit/124182 Del: integrated -- https://master.php.net/note/delete/124182/integrated Del: useless -- https://master.php.net/note/delete/124182/useless Del: bad code -- https://master.php.net/note/delete/124182/bad+code Del: spam -- https://master.php.net/note/delete/124182/spam Del: non-english -- https://master.php.net/note/delete/124182/non-english Del: in docs -- https://master.php.net/note/delete/124182/in+docs Del: other reasons-- https://master.php.net/note/delete/124182 Reject -- https://master.php.net/note/reject/124182 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212162) next »