Date: 10/31/01
- Next message: Sander Roobol: "Re: [PHP-DOC] ai traduttori italiani"
- Previous message: alan: "Re: [PHP-DOC] cvs [server aborted]"
- Next in thread: philip <email protected>: "[PHP-DOC] Bug #13890 Updated: Docu-Error at opendir()"
- Reply: philip <email protected>: "[PHP-DOC] Bug #13890 Updated: Docu-Error at opendir()"
- Reply: philip <email protected>: "[PHP-DOC] Bug #13890 Updated: Docu-Error at opendir()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: hannes.dorn <email protected>
Operating system: Windows 2000
PHP version: 4.0.6
PHP Bug Type: Documentation problem
Bug description: Docu-Error at opendir()
Related File: chm
"This file was generated: Thu Jul 26 22:28:30 2001"
In opendir() docu, it says:
if ($dir = <email protected>("/tmp")) {
while($file = readdir($dir)) {
echo "$file\n";
}
closedir($dir);
}
The while statement stops wenn a filename contains only of a "0". In
readdir() the docu is correct.
$handle=opendir('.');
echo "Directory handle: $handle\n";
echo "Files:\n";
while (($file = readdir($handle))!==false) {
echo "$file\n";
}
closedir($handle);
Note the !== false in the while statement.
Rasty
-- Edit bug report at: http://bugs.php.net/?id=13890&edit=1
- Next message: Sander Roobol: "Re: [PHP-DOC] ai traduttori italiani"
- Previous message: alan: "Re: [PHP-DOC] cvs [server aborted]"
- Next in thread: philip <email protected>: "[PHP-DOC] Bug #13890 Updated: Docu-Error at opendir()"
- Reply: philip <email protected>: "[PHP-DOC] Bug #13890 Updated: Docu-Error at opendir()"
- Reply: philip <email protected>: "[PHP-DOC] Bug #13890 Updated: Docu-Error at opendir()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

