note 8712 added to dir

From: Date: Mon, 25 Sep 2000 21:22:20 +0000
Subject: note 8712 added to dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-5425@lists.php.net to get a copy of this message
following code runs properly on FreeBSD version of PHP4.0.2 but failed on Solaris 7 : <?php $dir = "/home/chedong/public_html"; $d = dir($dir); while($entry = $d->read()){ echo $entry."<br>"; } ?> We found the error occured at $d->read() when the file read directory again there is no message returned..... is it a bug on Sun OS? http://www.php.net/manual/class.dir.php

« previous php.notes (#5425) next »