1--TEST--
2socket_import_stream: effects of leaked handles
3--EXTENSIONS--
4sockets
5zend_test
6--INI--
7report_memleaks=0
8--FILE--
9<?php
10
11$stream0 = stream_socket_server("udp://0.0.0.0:0", $errno, $errstr, STREAM_SERVER_BIND);
12$sock0 = socket_import_stream($stream0);
13zend_leak_variable($stream0);
14
15$stream1 = stream_socket_server("udp://0.0.0.0:0", $errno, $errstr, STREAM_SERVER_BIND);
16$sock1 = socket_import_stream($stream1);
17zend_leak_variable($sock1);
18
19echo "Done.\n";
20?>
21--EXPECT--
22Done.
23