_ext("ev");
?>
+--XFAIL--
+ext-ev leaks
--FILE--
<?php
echo "Test\n";
$this->client = $client;
}
- function init(callable $run) {
+ function init($run) {
$this->run = $run;
}
- function timer($timeout_ms) {
+ function timer(int $timeout_ms) {
echo "T";
if (isset($this->timeout)) {
$this->timeout->set($timeout_ms/1000, 0);
}
}
- function socket($socket, $action) {
+ function socket($socket, int $action) {
echo "S";
switch ($action) {
throw new BadMethodCallException("this test uses Ev::run()");
}
- function wait($timeout_ms = null) {
+ function wait(int $timeout_ms = null) {
throw new BadMethodCallException("this test uses Ev::run()");
}