1--TEST--
2socket_import_stream: effects of leaked handles
3--SKIPIF--
4<?php
5if (!extension_loaded('sockets')) {
6	die('SKIP sockets extension not available.');
7}
8if (!function_exists('zend_leak_variable'))
9	die('SKIP only for debug builds');
10--FILE--
11<?php
12
13$stream0 = stream_socket_server("udp://0.0.0.0:58380", $errno, $errstr, STREAM_SERVER_BIND);
14$sock0 = socket_import_stream($stream0);
15zend_leak_variable($stream0);
16
17$stream1 = stream_socket_server("udp://0.0.0.0:58381", $errno, $errstr, STREAM_SERVER_BIND);
18$sock1 = socket_import_stream($stream1);
19zend_leak_variable($sock1);
20
21echo "Done.\n";
22--EXPECT--
23Done.
24