[TYPO3-core] RFC #2642: Bug: Directories named 0 break directory listing and you cannnot create a directory with name 0
Steffen Kamper
info at sk-typo3.de
Sat Aug 30 12:51:05 CEST 2008
Rob Vonk schrieb:
> 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)
>
>
>
+1 by reading
vg Steffen
More information about the TYPO3-team-core
mailing list