Date: 09/30/98
- Next message: Shane Caraveo: "Re: [PHP-DEV] CVS update: php3/functions"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: thies <email protected>
Operating system: solaris
PHP version: 3.0 Latest CVS (30/09/1998)
PHP Bug Type: Misbehaving function
Bug description: cannot use the dir() function inside classes
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();
?>
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: Shane Caraveo: "Re: [PHP-DEV] CVS update: php3/functions"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

