From b62b6c3b48b92be460add989d9b62ac69114a66c Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 22 Nov 2001 10:07:52 +0000 Subject: [PATCH] Modify dir example to accept filename '0', as per the readdir and opendir examples. Fixed readdir example (it's using CDATA now). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@63019 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/dir.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/dir.xml b/functions/dir.xml index 0b2c81e09b..83734f5412 100644 --- a/functions/dir.xml +++ b/functions/dir.xml @@ -1,5 +1,5 @@ - + Directory functions Directories @@ -94,7 +94,7 @@ $d = dir("/etc"); echo "Handle: ".$d->handle."
\n"; echo "Path: ".$d->path."
\n"; -while ($entry = $d->read()) { +while (false !== ($entry = $d->read())) { echo $entry."
\n"; } $d->close(); @@ -242,7 +242,7 @@ closedir($handle);