php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4603 opendir('.') seems to point to / directory
Submitted: 2000-05-26 06:55 UTC Modified: 2000-05-26 11:42 UTC
From: yusufg at outblaze dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (26/05/2000) OS: Linux 2.2.12
Private report: No CVE-ID: None
 [2000-05-26 06:55 UTC] yusufg at outblaze dot com
PHP4 (CVS) compiled into Apache

Running this test script on latest CVS in any directory always prints
out the root directory "/" tree info. Doesn't seem correct
  
<?php
    $handle=opendir('.');
    while ($file = readdir($handle)) {
            echo "$file <BR>" ;
} 
  
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-26 11:42 UTC] thies at cvs dot php dot net
the CVS version has VIRTUAL_DIR support on by default. please comment out 
#define VIRTUAL_DIR  in php.h and you should see the correct listing again.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 19:01:26 2024 UTC