|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-17 02:03 UTC] laruence@php.net
-Status: Open
+Status: Not a bug
[2012-05-17 02:03 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ Problem with openDir/readDir: A folder with the name "0" breaks openDir/readDir. Sometimes you will have different orders, but the script breaks on the folder with the name "0". Tested on PHP 5.4 and 5.3 on different Webservers. (IIS + Apache) and different OS (Win7 + WinXP) Test script: --------------- <?php $verzeichnis2 = openDir("//fileserver/Daten/"); while ($file2 = readDir($verzeichnis2)) { echo $file2; echo "<br>"; } ?> Expected result: ---------------- folders: . .. 0 1 2 Actual result: -------------- Output from the example-script: . .. If you rename the Dir "0" to "X0" the output looks like: . .. X0 1 2