Conversation
deprecate DrupalFinder::shiftPathUp, does not Work with streamWrapper on Windows
Use SplFileInfo to simplify DrupalFinder::locateRoot
|
Looks great! Thanks. When i went to SplFileInfo i was searching for an Iterator to walk up the FileSystem. Something like this: Didn't find anything like that. |
There was a problem hiding this comment.
The first call to $path->getRealPath() clears all symlinks. see SplFileInfo::getRealPath
So for $follow_symlinks = TRUE we will not finde any more symlinks. No need to check for a link in the loop.
What are the use cases for not following symlinks?
- shared modules
any more?
We should add explicit tests for this use cases.
luenemam
left a comment
There was a problem hiding this comment.
The test are good, my idea of the simplification was wrong...
| return TRUE; | ||
| } | ||
| } | ||
| while (($path = $path->getPathInfo()) && ($path->getFilename() != '.')); |
There was a problem hiding this comment.
This works only with a streamwrapper... not a real FS... it get's into a loop at fs-root.
No description provided.