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

From: Date: Sun, 29 Apr 2001 17:38:26 +0000
Subject: 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-52963@lists.php.net to get a copy of this message
ID: 7344 Updated by: jmoore Reported By: jalal@php.net Old-Status: Closed Status: Open Bug Type: Directory function related PHP Version: 4.0 Latest CVS (19/10/2000) Assigned To: Comments: this still is the case with yesterdays CVS. - James Previous Comments: --------------------------------------------------------------------------- [2001-04-29 13:15:58] andi@php.net Please try the latest CVS and open a new bug report if this is still the case. --------------------------------------------------------------------------- [2001-01-12 15:50:19] cynic@php.net a me-too... the same on NT 5, mod_php4 from php4-200101120245 --------------------------------------------------------------------------- [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; --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7344&edit=2

« previous php.dev (#52963) next »