Friday, November 17, 2006

PHP, arrggh.

Why is:

$d
= dir("/etc/php5");

while (false !== ($entry = $d->read())) {
echo $entry."\n";
}
$d->close();
just fine, but
while (($temp = socket_read($socket,1024)) !== false) {
//Stuff
}

... going to loop forever?

Stupid lack of consistency.

No comments: