Actions
Bug #15682
closedReading folder contents fails if folder name is 0
Start date:
2006-02-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.7.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If a folder contains a subfolder which has a name '0' readdir fails to read directory. Solution is documented at php.net [1].
Don't know, where this function is used in the core, I recognized the problem when using filelist on a large picture database which stores files in single character-named folders. Maybe this is already solved in higher versions, haven't tried it yet.
[1] http://de3.php.net/manual/de/function.readdir.php
(issue imported from #M2642)
Files
Updated by Rob Vonk about 16 years ago
Used the solution from:
http://nl2.php.net/manual/en/class.dir.php
while (false !== ($entry = $d->read())) {
Updated by Rob Vonk about 16 years ago
And added a patch for creating dirs with '0' as name.
Updated by Christian Kuhn about 16 years ago
2642.diff merges both patches and adds the fix to t3lib_div::get_dirs() (used in the foldertree).
Actions