[PHP-DEV] PHP 4.0 Bug #7344 Updated: opendir always returns a resource even on non-existen directories From: cynic <email protected>
Date: 01/12/01

ID: 7344
Updated by: cynic
Reported By: jalal <email protected>
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 <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>