Date: 07/27/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5804 Updated: parser error if any spaces follow indentifier in with here doc syntax"
- Previous message: Stig Venaas: "Re: [PHP-DEV] restructuring/rewriting parts of networking code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: eso.terico <email protected>
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.
-- 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>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5804 Updated: parser error if any spaces follow indentifier in with here doc syntax"
- Previous message: Stig Venaas: "Re: [PHP-DEV] restructuring/rewriting parts of networking code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

