php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #801 cannot use the dir() function inside classes
Submitted: 1998-09-30 09:35 UTC Modified: 1998-10-03 20:19 UTC
From: thies at digicol dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (30/09/1998) OS: solaris
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thies at digicol dot de
New email:
PHP Version: OS:

 

 [1998-09-30 09:35 UTC] thies at digicol dot de
it seems that using the dir() function inside classes does not work the error message is:

Warning: unable to find my handle property in /dot/dgs/tc/dgs/search/test.php3 on line 5

what am i doing wrong???

sample file:

<?
class tubu
{ cfunction test()
    { $d = dir("/tmp/");
      while ($f = $d->read())
        { echo $f."<BR>";
        }
    }
}
/* this works */
    { $d = dir("/tmp/");
      while ($f = $d->read())
        { echo $f."<BR>";
        }
    }

$hallo = new tubu;

/* this doesn't */

$hallo->test();
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-03 20:19 UTC] zeev
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 09:01:34 2025 UTC