Re: Very strange bug. Opendir/Readdir
| From: | Curt Zirzow | Date: | Thu, 17 Jun 2004 15:18:32 +0000 |
| Subject: | Re: Very strange bug. Opendir/Readdir | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188490@lists.php.net to get a copy of this message | ||
* Thus wrote Matt Richards (matt.richards@Safetymedia.co.uk):
> Imagine the following:
>
> 362>class someClass {
> 363> function someFunction() {
> 364> if($rDirectory = opendir("/templates")) {
> 365> while(false != ($strFile = readdir($srDirectory))) {
Looks like a typo, you're assigning rDirectory but using
srDirectory.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!