Bug #15175 Updated: is_dir does not work correctly

From: Date: Tue, 19 Feb 2002 20:31:57 +0000
Subject: Bug #15175 Updated: is_dir does not work correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-608@lists.php.net to get a copy of this message
ID: 15175 Updated by: cmk@php.net Reported By: ddunn@lwdd.fsnet.co.uk -Status: Open +Status: Closed Bug Type: Filesystem function related Operating System: Windows 2000 PHP Version: 4.1.0 New Comment: Can't reproduce with 4.1.1 on Windows 2000. Previous Comments: ------------------------------------------------------------------------ [2002-01-24 14:58:44] ddunn@lwdd.fsnet.co.uk I have tried the following paths.. c:\\Inetpub\\wwwroot\\catalog\\images c:\Inetpub\wwwroot\catalog\images c:/Inetpub/wwwroot/catalog/images \Inetpub\wwwroot\catalog\images /Inetpub/wwwroot/catalog/images Also tried with \ at the end of the pathname but this hangs the script. ------------------------------------------------------------------------ [2002-01-23 14:00:58] sander@php.net Can you show us a 'complete path'? You're probably doing something wrong. ------------------------------------------------------------------------ [2002-01-22 16:53:43] ddunn@lwdd.fsnet.co.uk The following code does not work on Windows 2000 Service Pack 2 with PHP 4.1.0 (no modules loaded, using php.exe). Webserver is IIS. is_dir reports back that directory does not exist when it does. Tried using clearstatcache and chdir etc..etc....no different... Have tried on a Linux/Apache system and it works fine. if (is_dir("$complete_path") == true) {print ("Directory exists");} else {print ("Directory does not exist"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15175&edit=1

« previous php.bugs (#608) next »