Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f6a2b74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With PHP 5.3.2 on Ubuntu you still need a file check to see if you have a file or a folder - leaves only returns the current "." folder.
f6a2b74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had also fixed this in a local fork last month, as the code was consistently breaking on our Linux machines. I submitted a pull request back then, but it wasn't picked up - I'll try again.
http://github.com/opensky/symfony/commit/aa70df9c9014335699ef4f5fbdb74002b4b8e3c9
My guess is that the Symfony devs are mostly using Macs, where "." isn't returned as a leaf (an obscure platform difference).