|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-29 15:32 UTC] iliaa@php.net
-Status: Open
+Status: Wont fix
[2010-11-29 15:32 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ hi user 1: opendir("mydir"); at the same time: user 2: rmdir("mydir"); the dir is removed, but user1 tries to read it: user 1: readdir(); // no error here or you can just simply test this: $handle = opendir('mydir'); rmdir("mydir"); // no error here // the dir is empty so "echo $file" is not executed, but the dir does not exists, not empty while (false !== ($file = readdir($handle))) echo $file;