mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
some examples fixed regarding to bug # 5867
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29565 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ce78b15a5e
commit
fa036cb834
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ $d->close();
|
|||
$handle=opendir('.');
|
||||
echo "Directory handle: $handle\n";
|
||||
echo "Files:\n";
|
||||
while ($file = readdir($handle)) {
|
||||
while (($file = readdir($handle))!==false) {
|
||||
echo "$file\n";
|
||||
}
|
||||
closedir($handle);
|
||||
|
@ -145,7 +145,7 @@ closedir($handle);
|
|||
<programlisting role="php">
|
||||
<?php
|
||||
$handle=opendir('.');
|
||||
while ($file = readdir($handle)) {
|
||||
while (false!==($file = readdir($handle))) {
|
||||
if ($file != "." && $file != "..") {
|
||||
echo "$file\n";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue