Merge branch 'v2.6.x'
[m6w6/ext-http] / tests / client029.phpt
index 2ed6d7934c36773a9fdbcd2d635bb4ab84970289..1c8dc4f3528700708d342f08478461847e1fc591 100644 (file)
@@ -7,6 +7,8 @@ skip_client_test();
 _ext("ev");
 
 ?> 
+--XFAIL--
+ext-ev leaks
 --FILE--
 <?php 
 echo "Test\n";
@@ -23,11 +25,11 @@ class UserHandler implements http\Client\Curl\User
                $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);
@@ -44,7 +46,7 @@ class UserHandler implements http\Client\Curl\User
                }
        }
        
-       function socket($socket, $action) {
+       function socket($socket, int $action) {
                echo "S";
                
                switch ($action) {
@@ -93,7 +95,7 @@ class UserHandler implements http\Client\Curl\User
                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()");
        }