PHP 4.0 Bug #5808: the function opendir does not return the list, but a value like Resource id #1
| From: | maximus80 at hotmail dot com | Date: | Thu, 27 Jul 2000 08:39:00 +0000 |
| Subject: | PHP 4.0 Bug #5808: the function opendir does not return the list, but a value like Resource id #1 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26439@lists.php.net to get a copy of this message | ||
From: maximus80@hotmail.com
Operating system: linux redhat 6.2
PHP version: 4.0.1
PHP Bug Type: Other
Bug description: the function opendir does not return the list, but a value like Resource id #1
----- PHP Source code -----
<?php
$handle=opendir('.');
echo "Directory handle: $handle\n";
echo "Files:\n";
while ($file = readdir($handle)) {
echo "$file\n";
}
closedir($handle);
?>
----- PHP configure command ------
'./configure' '--with-apache=/usr/local/src/apache_1.3.12/'
'--with-ttf' '--with-gd=/usr/local/'
'--with-pdflib=/usr/local'
'--with-pgsql=/usr/local/pgsql/' '--with-zlib' '--with-jpeg-dir=/usr/'
'--with-tiff-dir=/usr/' '--disable-debug'
Description:
the first time that I execute the code, all it's OK, but the second, the third etc... the
function opendir doesn't return the list of the files of the directory.
I have checked the permission of the directories and the files, but the function doesn't return
the expected value.