Bug #16257 Updated: is_dir enters infinite loop

From: Date: Wed, 03 Jul 2002 09:42:54 +0000
Subject: Bug #16257 Updated: is_dir enters infinite loop
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12949@lists.php.net to get a copy of this message
ID: 16257 Updated by: sfox@php.net Reported By: denissov@hotmail.com -Status: Open +Status: Closed Bug Type: Directory function related Operating System: Windows 98 PHP Version: 4.0.6 New Comment: I can't replicate this .. Suggest you upgrade PHP and re-open this bug report if you still have the problem - please, give your output or some clue as to the result you're getting as well as code another time. Thanks - Previous Comments: ------------------------------------------------------------------------ [2002-03-25 10:36:49] denissov@hotmail.com I have manually set windows swapfile to another partition than C:. In the root I have a file called Win386.swp and when I try to list the root dir... well, here's the code: $dir = "/"; print_r(listDir($dir)); function listDir ($dir=".") { $thisDir = opendir($dir); while($d = readdir($thisDir)) { if (is_dir("$dir/$d")) { $listDirs[] = $d; } } return $listDirs; } ------------------------------------------------------------------------ [2002-03-25 08:47:45] sander@php.net Can you provide a sample script? ------------------------------------------------------------------------ [2002-03-25 07:32:52] denissov@hotmail.com That happens when you want to check if the windows' swapfile is a ehm... a dir. I'm using php 4.0.6 with Apache. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16257&edit=1

« previous php.bugs (#12949) next »