mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed opendir() example as per bug #13890
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61694 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
91ef472452
commit
719ca0c2e6
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.22 $ -->
|
||||
<!-- $Revision: 1.23 $ -->
|
||||
<reference id="ref.dir">
|
||||
<title>Directory functions</title>
|
||||
<titleabbrev>Directories</titleabbrev>
|
||||
|
@ -176,7 +176,7 @@ $d->close();
|
|||
<?php
|
||||
|
||||
if ($dir = @opendir("/tmp")) {
|
||||
while ($file = readdir($dir)) {
|
||||
while (($file = readdir($dir)) !== false) {
|
||||
echo "$file\n";
|
||||
}
|
||||
closedir($dir);
|
||||
|
|
Loading…
Reference in a new issue