Bug #7344 Updated: opendir always returns a resource even on non-existen directories
| From: | andi@php.net | Date: | Sun, 29 Apr 2001 18:00:07 +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-52970@lists.php.net to get a copy of this message | ||
ID: 7344
Updated by: andi
Reported By: jalal@php.net
Old-Status: Open
Status: Closed
Bug Type: Directory function related
PHP Version: 4.0 Latest CVS (19/10/2000)
Assigned To:
Comments:
Fixed in latest CVS.
Previous Comments:
---------------------------------------------------------------------------
[2001-04-29 13:38:26] jmoore@php.net
this still is the case with yesterdays CVS.
- James
---------------------------------------------------------------------------
[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