note 12418 deleted from ref.sockets by jimw

From: Date: Fri, 21 Dec 2001 00:33:13 +0000
Subject: note 12418 deleted from ref.sockets by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23634@lists.php.net to get a copy of this message
i've tested the 'one-shot http client' with some sites (yahoo, google, etc) and always had the same problem: read() won't return 0 when finished, rather a negative number. thus the read line would be while (read ($socket, $out, 2048) >= 0) this happens with php 4.0.4pl1.

« previous php.notes (#23634) next »