1--TEST--
2socket_export_stream: effects of leaked handles
3--EXTENSIONS--
4sockets
5zend_test
6--INI--
7report_memleaks=0
8--FILE--
9<?php
10
11$sock0 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
12socket_bind($sock0, '0.0.0.0', 0);
13$stream0 = socket_export_stream($sock0);
14zend_leak_variable($stream0);
15
16$sock1 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
17socket_bind($sock1, '0.0.0.0', 0);
18$stream1 = socket_export_stream($sock1);
19zend_leak_variable($sock1);
20
21echo "Done.\n";
22?>
23--EXPECT--
24Done.
25