PHP 4.0 Bug #7344 Updated: opendir always returns a resource even on non-existen directories

From: Date: Fri, 12 Jan 2001 20:50:19 +0000
Subject: PHP 4.0 Bug #7344 Updated: opendir always returns a resource even on non-existen directories
Groups: php.dev 
Request: Send a blank email to php-dev+get-43924@lists.php.net to get a copy of this message
ID: 7344 Updated by: cynic Reported By: jalal@php.net Status: Open Bug Type: Directory function related Assigned To: Comments: a me-too... the same on NT 5, mod_php4 from php4-200101120245 Previous Comments: --------------------------------------------------------------------------- [2000-10-19 11:32:39] jalal@php.net See subject line... Try code: $dir = "/somewhere/on/my/drive"; $res = opendir( $dir ); echo "$dir=$dir, $res = $resn"; returns: $dir=/somewhere/on/my/drive, $res = Resource ID #1 (/somewhere/on/my/drive is not a real directory. On linux, the same code returns a false; --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7344

« previous php.dev (#43924) next »