2 client eventloop recursion
12 include "helper/server.inc";
14 class test implements SplObserver {
15 #[ReturnTypeWillChange]
16 function update(SplSubject $client) {
20 server("proxy.inc", function($port) {
21 $client = new http\Client;
22 $client->configure(array(
23 "use_eventloop" => true,
25 $client->attach(new test);
26 $client->enqueue(new http\Client\Request("GET", "http://localhost:$port/"), function($r) {
27 var_dump($r->getResponseCode());