Source

pecl-event / examples / httpv0client2.php

Diff from to

examples/httpv0client2.php

 function readcb($bev, $base) {
 	$input = $bev->getInput();
 
-	while (($n = $input->remove($buf, 1024)) > 0) {
+	while (!empty($buf = $input->read(1024))) {
 		echo $buf;
 	}
 }