Ticket #3307 (new defect)
dir object broken, at least on mingw
| Reported by: | weyrick | Owned by: | anonymous |
|---|---|---|---|
| Priority: | urgent | Milestone: | 3.0.0 release |
| Component: | Standard Library | Version: | trunk |
| Severity: | major | Keywords: | |
| Cc: |
Description (last modified by weyrick) (diff)
# reading directories from $root_dir
$root_dir='c:\pub\pdmt\\'; # I've tested it with $root_dir='/pub/pdmt'; also
echo "Reading entries from : $root_dir\n";
$dir=&dir($root_dir);
while ($entry=$dir->read()) {
if (($entry<>'.') and ($entry<>'..')) {
array_push($dir_ar,$entry);
echo "$entry\n";
}
}
$dir->close();
echo "Whole table : \n";
print_r($dir_ar);
Change History
Note: See
TracTickets for help on using
tickets.
