[TYPO3-core] RFC #2642: Bug: Directories named 0 break directory listing and you cannnot create a directory with name 0

Rob Vonk typo3 at robvonk.com
Sat Aug 30 09:07:36 CEST 2008


This is an SVN patch request.

Type: Bug

Bugtracker references:

http://bugs.typo3.org/view.php?id=2642

Branches: Trunk

Problem:

If a folder contains a subfolder which has a name '0' (zero) readdir fails to read directory. You cannot create a directory with name '0' (zero).

Solution:

Use this method of reading the directory: while (false !== ($entry = $d->read())) instead of: while($entry=$d->read())

Use this method to check if directory is entered: if (isset($theFolder)) instead of: if ($theFolder)



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dir_bug.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080830/2ed79ea5/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: create_0_dir.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080830/2ed79ea5/attachment-0001.txt 


More information about the TYPO3-team-core mailing list