- Fixed build on php-trunk
[m6w6/ext-http] / tests / HttpRequestPool_007.phpt
index 2105d4929fd713d18c980f45df4775f442eeefcf..b1acafc1d5e488f11571fc5684c7b4393185eff0 100644 (file)
@@ -5,8 +5,7 @@ HttpRequestPool chain with libevent
 include 'skip.inc';
 checkcls('HttpRequest');
 checkcls('HttpRequestPool');
-$pool = new RequestPool;
-skipif(!@$pool->enableEvents(), "need libevent support");
+skipif(!http_support(HTTP_SUPPORT_EVENTS), "need libevent support");
 ?>
 --FILE--
 <?php
@@ -113,7 +112,7 @@ printf("Elapsed: %0.3fs\n", microtime(true)-$time);
 echo "Done\n";
 ?>
 --EXPECTF--
-%sTEST
+%aTEST
 %d %s %d
 %d %s %d
 %d %s %d