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:
Hartmut Holzgraefe 2000-08-04 09:08:12 +00:00
parent ce78b15a5e
commit fa036cb834

View file

@ -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">
&lt;?php
$handle=opendir('.');
while ($file = readdir($handle)) {
while (false!==($file = readdir($handle))) {
if ($file != "." &amp;&amp; $file != "..") {
echo "$file\n";
}