Re: [PHP] Very strange bug. Opendir/Readdir

2004-06-17 Thread Curt Zirzow
* Thus wrote Matt Richards ([EMAIL PROTECTED]): > 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

RE: [PHP] Very strange bug. Opendir/Readdir[Scanned]

2004-06-17 Thread Michael Egan
ng with it. Regards, Michael Egan -Original Message- From: Matt Richards [mailto:[EMAIL PROTECTED] Sent: 17 June 2004 12:51 To: [EMAIL PROTECTED] Subject: [PHP] Very strange bug. Opendir/Readdir[Scanned] Imagine the following: 362>class someClass { 363> function someFunctio

[PHP] Very strange bug. Opendir/Readdir

2004-06-17 Thread Matt Richards
Imagine the following: 362>class someClass { 363> function someFunction() { 364>if($rDirectory = opendir("/templates")) { 365> while(false != ($strFile = readdir($srDirectory))) { 366>print $strFile.""; 367> } 368> } 369> } 370>} The class is constructed successfully,